List Info

Thread: Get the preceding and following terms




Get the preceding and following terms
country flaguser name
Belgium
2007-10-19 08:01:11
Hello,

I'm trying to create a suggestion tool based on Lucene. From
a term in 
the index, i'd like to know the terms that often precede and
follow this 
term in the indexed documents (NOT according to the
alphabetical order).

I know that Lucene stores the term positions but I don't
know how to use 
this piece of information.

Thanks,

Fabrice

------------------------------------------------------------
---------
To unsubscribe, e-mail: java-user-unsubscribelucene.apache.org
For additional commands, e-mail: java-user-helplucene.apache.org


Re: Get the preceding and following terms
country flaguser name
United States
2007-10-19 08:12:07
Have a look at the SpanQuery and it's derivitives.  I have
some  
examples in my ApacheCon Europe talk http://cnlp.org/presen
tations/ 
slides/AdvancedLuceneEU.pdf

You will most likely have to do some post processing.  Using
Term  
Vectors and the new TermVectorMapper may help facilitate
this.

Cheers,
Grant

On Oct 19, 2007, at 9:01 AM, Fabrice Estiévenart wrote:

> Hello,
>
> I'm trying to create a suggestion tool based on Lucene.
From a term  
> in the index, i'd like to know the terms that often
precede and  
> follow this term in the indexed documents (NOT
according to the  
> alphabetical order).
>
> I know that Lucene stores the term positions but I
don't know how  
> to use this piece of information.
>
> Thanks,
>
> Fabrice
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: java-user-unsubscribelucene.apache.org
> For additional commands, e-mail: java-user-helplucene.apache.org
>

--------------------------
Grant Ingersoll
http://lucene.granti
ngersoll.com

Lucene Boot Camp Training:
ApacheCon Atlanta, Nov. 12, 2007.  Sign up now!  http:// 
www.apachecon.com

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance

http://w
iki.apache.org/lucene-java/LuceneFAQ



------------------------------------------------------------
---------
To unsubscribe, e-mail: java-user-unsubscribelucene.apache.org
For additional commands, e-mail: java-user-helplucene.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )