You could look at the docID of each hit, and compare to the .maxDoc() of each underlying reader.

MultiSearcher logically "concatenates" the docIDs.

However, docIDs are an internal identifier for Lucene, so it's always possible in a new release of Lucene that how docIDs are mapped by MultiSearcher would change.

Mike

KrustyDerClown wrote:

Hello,

i have a short question to the MultiSearcher. Is it possible to identify from which index a result/hit comes when i use a MultiSearcher (2 Indizes)?

Thank you for your help.

Greets
Oliver


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to