Migrating some code from 2.3.2 to 2.9.4 and I have custom Collectors.
Now there are multiple calls to collect and each call needs to adjust the passed doc id by docBase as given in SetNextReader.
However, if you want to fetch the document in the collector, what docId/IndexReader combination should be used.
Given that collect(int doc) setNextReader(IndexReader reader, int docBase) I have tested the following two which seem to get the same document Document d = searcher.getIndexReader.document(doc + docBase) Document d = reader.document(doc) Is this guaranteed to always be the case and how the APIs should be used? Thanks Antony --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org