java - Lucene distinct result -
please, me distinct result field. tried go many way, googled... can't ti.
i tried add hashset, tried duplicatefilter. think collector without success. result. use java, lucene-2.9.3.
example:
some_id description 1 bbb aaa 1 aaa ccc 2 aaa ddd 2 fff aaa
and if search description in result must distinct some_id (1,2).
maybe have solution or have code example.
thanks advance.
the very-new (still patch) grouping module on https://issues.apache.org/jira/browse/lucene-1421 might relevant here. enables group hits according field. example, if group "author" documents having same author in same group.
Comments
Post a Comment