th
Lucene.
Renzo
-Ursprüngliche Nachricht-
Von: Nicolas Lalevée [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 3. Oktober 2006 00:04
An: java-user@lucene.apache.org
Betreff: Re: get terms by positions
Le Lundi 02 Octobre 2006 23:06, Renzo Scheffer a écrit :
Hi,
can anybody be so kind
gt; Gesendet: Dienstag, 3. Oktober 2006 00:04
> An: java-user@lucene.apache.org
> Betreff: Re: get terms by positions
>
> Le Lundi 02 Octobre 2006 23:06, Renzo Scheffer a écrit :
> > Hi,
> >
> >
> >
> > can anybody be so kind to tell me if it is possible to s
4
An: java-user@lucene.apache.org
Betreff: Re: get terms by positions
Le Lundi 02 Octobre 2006 23:06, Renzo Scheffer a écrit :
Hi,
can anybody be so kind to tell me if it is possible to search a
Term by
its
position?
I search a term (for excample "soccer") and get back the DocI
t and
first I'll try to find out if it is possible to do something like that with
Lucene.
Renzo
-Ursprüngliche Nachricht-
Von: Nicolas Lalevée [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 3. Oktober 2006 00:04
An: java-user@lucene.apache.org
Betreff: Re: get terms by positions
L
From: NicolasLalevée <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Tuesday, October 3, 2006 1:04:20 AM
Subject: Re: get terms by positions
Le Lundi 02 Octobre 2006 23:06, Renzo Scheffer a écrit :
> Hi,
>
>
>
> can anybody be so kind to tell me if it is possible to
You can store TermVectors with position info, but I don't think this would
be enough for what you are asking, because it is not meant for direct
access to a term by its position, and because TermVectors store tokens,
i.e. the "indexed" form of the word, which I am not sure is what you need.
It see
Le Lundi 02 Octobre 2006 23:06, Renzo Scheffer a écrit :
> Hi,
>
>
>
> can anybody be so kind to tell me if it is possible to search a Term by its
> position?
>
>
>
> I search a term (for excample "soccer") and get back the DocId's and
> positions as follows:
>
>
>
>
>
> TermPositions termPos = rea
Hi,
can anybody be so kind to tell me if it is possible to search a Term by its
position?
I search a term (for excample "soccer") and get back the DocId's and
positions as follows:
TermPositions termPos = reader.termPositions(new Term("contents","soccer"));
while(termPos.next()){
i