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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]