lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <>
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 

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


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:
> For additional commands, e-mail:

Grant Ingersoll

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

Lucene Helpful Hints:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message