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-unsubscribe lucene.apache.org
> For additional commands, e-mail: java-user-help lucene.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-unsubscribe lucene.apache.org
For additional commands, e-mail: java-user-help lucene.apache.org
|