java-user@lucene.apache.org
[Top] [All Lists]

Re: Lucene: MultiSearcher

Subject: Re: Lucene: MultiSearcher
From: Michael McCandless
Date: Fri, 6 Mar 2009 06:28:30 -0500

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@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: java-user-help@xxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>