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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]