lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Lucene: MultiSearcher
Date Fri, 06 Mar 2009 11:28:30 GMT

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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message