RE: Determine the index of a hit after using MultiSearcher - Resolved

2005-11-30 Thread Peter Beyersdorf
Hello, I just wanted to let you know that the issue is resolved. I am using int searcherIndex = multiSearcher.subSearcher(hits.id(i)); where i is the index in the hits. It works fine! Thanks to everybody for this solution! Peter ---

Re: Determine the index of a hit after using MultiSearcher

2005-11-29 Thread Paul Elschot
On Tuesday 29 November 2005 22:42, Paul Elschot wrote: > On Tuesday 29 November 2005 14:47, [EMAIL PROTECTED] wrote: > > 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?

Re: Determine the index of a hit after using MultiSearcher

2005-11-29 Thread Paul Elschot
On Tuesday 29 November 2005 14:47, [EMAIL PROTECTED] wrote: > 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? Yes: use the subIndex() and maybe subDoc() methods here: http://l

RE: Determine the index of a hit after using MultiSearcher

2005-11-29 Thread Vanlerberghe, Luc
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