lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vanlerberghe, Luc" <Luc.Vanlerber...@bvdep.com>
Subject RE: Determine the index of a hit after using MultiSearcher
Date Tue, 29 Nov 2005 14:39:24 GMT
There's a public method "int subSearcher(int n)" in MultiSearcher.

If you pass it a document id (not the hit sequence number!), it returns the number of the
searcher that contains that document id (in the array you passed to the constructor of MultiSearcher)

Luc

-----Original Message-----
From: Stefan Gusenbauer [mailto:stefan.gusenbauer@kbse.net] 
Sent: dinsdag 29 november 2005 14:51
To: java-user@lucene.apache.org
Subject: AW: Determine the index of a hit after using MultiSearcher

I've done this in the same way every document contains a field with the corresponding index.
I fear there is no other way to do this.


-----Urspr√ľngliche Nachricht-----
Von: pbatcoi@gmx.net [mailto:pbatcoi@gmx.net] 
Gesendet: Dienstag, 29. November 2005 14:48
An: java-user@lucene.apache.org
Betreff: Determine the index of a hit after using MultiSearcher

Hello,

I am searching over multiple indices using MultiSearcher. Thus I get hits
from various indices. Is it possible to determine from which index a hit
comes?

The solution I found is to store the index in a document's field, but this
causes some overhead. I would like to find another solution.

Thank you for having read this!

Peter


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


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



---------------------------------------------------------------------
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