You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2022/10/12 13:24:14 UTC

[GitHub] [lucenenet] mq00fc opened a new issue, #649: About the problem of distinct under the field obtained by Lucene.net when querying

mq00fc opened a new issue, #649:
URL: https://github.com/apache/lucenenet/issues/649

   I'm sorry to ask here, I really can't find how to use the distinct function on lucene.net4.8 beta16. My idea is to construct query conditions first, then filter, and finally get the result of the query as Distinct
   For example, the current query field results are: 1,1,1,1,1,5,6,7,8,4,5,6,4,5,6,5,5,4
   Distinct result: 1, 5, 6, 7, 8, 4
   
   I read Lucene.net.grouping on the official website
   But the demo can't run normally, I'm helpless, looking forward to your reply. Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [lucenenet] mq00fc commented on issue #649: About the problem of distinct under the field obtained by Lucene.net when querying

Posted by GitBox <gi...@apache.org>.
mq00fc commented on issue #649:
URL: https://github.com/apache/lucenenet/issues/649#issuecomment-1276383627

   > 可能有一种更快的方法来获得不同的值,但分组功能应该能够实现这一点。自从我使用分组功能已经有一段时间了,但请看一下[TestGroupingExtra.cs](https://github.com/apache/lucenenet/blob/master/src/Lucene.Net.Tests.Grouping/TestGroupingExtra.cs),其中包含我创建的一堆测试,以更好地了解分组的工作原理。您可能会发现它很有帮助。
   
   Thank you very much for your reply in your busy schedule, I looked at your unit test and successfully implemented this function in the field "brandId", but it won't work if I use other Chinese fields, I don't Know why, may I ask why?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [lucenenet] rclabo commented on issue #649: About the problem of distinct under the field obtained by Lucene.net when querying

Posted by GitBox <gi...@apache.org>.
rclabo commented on issue #649:
URL: https://github.com/apache/lucenenet/issues/649#issuecomment-1277800581

   The [TestGroupingExtra.cs](https://github.com/apache/lucenenet/blob/master/src/Lucene.Net.Tests.Grouping/TestGroupingExtra.cs) file I mentioned contains lots of examples of sorting in the context of groups.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [lucenenet] eladmarg commented on issue #649: About the problem of distinct under the field obtained by Lucene.net when querying

Posted by GitBox <gi...@apache.org>.
eladmarg commented on issue #649:
URL: https://github.com/apache/lucenenet/issues/649#issuecomment-1277828959

   this is not an issue, and this is not questions & answers site. 
   if you have questions, please ask them on [stackoverflow](https://stackoverflow.com/)
   
   @NightOwl888, please close. thanks.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [lucenenet] mq00fc commented on issue #649: About the problem of distinct under the field obtained by Lucene.net when querying

Posted by GitBox <gi...@apache.org>.
mq00fc commented on issue #649:
URL: https://github.com/apache/lucenenet/issues/649#issuecomment-1276384462

   > 似乎您为此任务使用了错误的工具。 如果要计算不同的值,则应使用[构面](https://github.com/apache/lucenenet/blob/master/src/Lucene.Net.Demo/Facet/SimpleFacetsExample.cs)搜索。
   
   ah,I think I need to look at the following documents, thank you for your reply


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [lucenenet] mq00fc commented on issue #649: About the problem of distinct under the field obtained by Lucene.net when querying

Posted by GitBox <gi...@apache.org>.
mq00fc commented on issue #649:
URL: https://github.com/apache/lucenenet/issues/649#issuecomment-1277754803

   Sorry to ask again, the previous groupingsearch problem has been solved. At present, there is a problem of sorting similarity of search, that is, the content of the search is displayed in front of the searched keyword (the original text is not analyzed). I found morelikethis, but I am not very sure. Hope to get your reply, thank you @rclabo 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [lucenenet] mq00fc closed issue #649: About the problem of distinct under the field obtained by Lucene.net when querying

Posted by GitBox <gi...@apache.org>.
mq00fc closed issue #649: About the problem of distinct under the field obtained by Lucene.net when querying
URL: https://github.com/apache/lucenenet/issues/649


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [lucenenet] rclabo commented on issue #649: About the problem of distinct under the field obtained by Lucene.net when querying

Posted by GitBox <gi...@apache.org>.
rclabo commented on issue #649:
URL: https://github.com/apache/lucenenet/issues/649#issuecomment-1276342977

   There may be a faster way to get distinct values but the grouping functionality should be able to accomplish that.  It's been awhile since I worked with the grouping functionality but take a look at [TestGroupingExtra.cs](https://github.com/apache/lucenenet/blob/master/src/Lucene.Net.Tests.Grouping/TestGroupingExtra.cs) which contains a bunch of tests I created to better understand how grouping works.  You may find it helpful.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [lucenenet] mq00fc commented on issue #649: About the problem of distinct under the field obtained by Lucene.net when querying

Posted by GitBox <gi...@apache.org>.
mq00fc commented on issue #649:
URL: https://github.com/apache/lucenenet/issues/649#issuecomment-1277815033

   > The [TestGroupingExtra.cs](https://github.com/apache/lucenenet/blob/master/src/Lucene.Net.Tests.Grouping/TestGroupingExtra.cs) file I mentioned contains lots of examples of sorting in the context of groups.
   
   Sorry I didn't find any clue you said, here I am not using groupingsearch but boolean query,groupingsearch use filter data item,It has been done with your help


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [lucenenet] eladmarg commented on issue #649: About the problem of distinct under the field obtained by Lucene.net when querying

Posted by GitBox <gi...@apache.org>.
eladmarg commented on issue #649:
URL: https://github.com/apache/lucenenet/issues/649#issuecomment-1276359382

   seems like you're using the wrong tool for this task. 
   if you want to count distinct values, you should use [facets](https://github.com/apache/lucenenet/blob/master/src/Lucene.Net.Demo/Facet/SimpleFacetsExample.cs) search.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org