You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Moshe Immerman <mo...@egis-software.com> on 2013/06/27 13:00:35 UTC
Duplicate documents
Hi
We have recently upgraded from Lucene 3.6 to 4.3.1 and have encountered a sometimes intermittent issue of IndexSearcher.search returning duplicate documents (based on lucene doc no, not a custom field)
i.e.
TopDocs docs = IndexSearcher.search(query, filter, 100000, sort)
assert docs.scoreDocs[0].doc == docs.scoreDocs[1].doc
Is their a reason that duplicates are returned or a better way of searching so that they are not?
Moshe