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
---
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
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?
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
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
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
-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
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
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
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
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.
11 matches
Mail list logo