Have a look at the Field.TermVector options to the Field constructor. You will need to add this attribute at index time, then during search, you can use IndexReader.getTermFreqVector (or it's variants).

-Grant

On Dec 25, 2008, at 4:40 AM, Shahid Faiz wrote:

Hi,

I am new to lucene. I am trying to build term clusters based on the results returned by a query. Is there any way I can get terms of resulted documents
and their scores?

Thanks,
shahid

--------------------------
Grant Ingersoll

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











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

Reply via email to