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: AW: AW: Determine the index of a hit after using MultiSearcher

2005-11-29 Thread Otis Gospodnetic
We are not planning on anything servlet-specific - servlets are really nothing special. But we are planning on LIA 2.0. Not sure about the timing yet (but I can tell you we haven't started writing anything just yet). Otis --- Malcolm <[EMAIL PROTECTED]> wrote: > Are you going to write another

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: AW: AW: Determine the index of a hit after using MultiSearcher

2005-11-29 Thread Malcolm
Are you going to write another addition with lots of Servlet code? If that's the case put me down for an advance copy.Lucene and servlets is a direction I may be going in the future. Thanks, Malcolm Clark - To unsubscribe, e

Re: AW: AW: Determine the index of a hit after using MultiSearcher

2005-11-29 Thread Erik Hatcher
o the 2nd edition though. Erik -Ursprüngliche Nachricht- Von: Erik Hatcher [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 29. November 2005 15:57 An: java-user@lucene.apache.org Betreff: Re: AW: Determine the index of a hit after using MultiSearcher On 29 Nov 2005, at 08:51, S

AW: AW: Determine the index of a hit after using MultiSearcher

2005-11-29 Thread Stefan Gusenbauer
-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 indi

Re: AW: Determine the index of a hit after using MultiSearcher

2005-11-29 Thread Erik Hatcher
t; i++) { int position = i - 1; Document doc = hits.doc(position); int indexIndex = searcher.subSearcher(hits.id(position)); // ... } The trick is to use searcher.subSearcher with the document number from hits. Erik -Ursprüngliche Nachricht- Von: [EMAIL PROTE

RE: Determine the index of a hit after using MultiSearcher

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

AW: Determine the index of a hit after using MultiSearcher

2005-11-29 Thread Stefan Gusenbauer
e.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

Determine the index of a hit after using MultiSearcher

2005-11-29 Thread pbatcoi
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.