Hi there, I am currently updating an old project that was based on Apache Lucene 4.6.0. The project used a DuplicateFilter to filter search results with the following code:
TopDocs docs = searcher.search(query, new DuplicateFilter(field), Integer.MAX_VALUE, new Sort(new SortField(sortField, Type.STRING))); However, I noticed in the release notes for Lucene 7.0.0 that the DuplicateFilter has been removed and that DiversifiedTopDocsCollector should be used instead. Unfortunately, I am having difficulty understanding how to use DiversifiedTopDocsCollector and have been unable to find comprehensive documentation on it. Could anyone provide guidance or an example of how to implement a filter similar to the old DuplicateFilter using DiversifiedTopDocsCollector? Thank you for your assistance! --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org