lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: Get the preceding and following terms
Date Fri, 19 Oct 2007 13:12:07 GMT
Have a look at the SpanQuery and it's derivitives.  I have some  
examples in my ApacheCon Europe talk http://cnlp.org/presentations/ 
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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

--------------------------
Grant Ingersoll
http://lucene.grantingersoll.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://wiki.apache.org/lucene-java/LuceneFAQ



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message