lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: reverse lookup
Date Mon, 02 Aug 2004 10:34:36 GMT
On Aug 1, 2004, at 10:25 PM, John Adam wrote:
>
> Is there a way to get most significant words of a document if i give a 
> document number.
>

Have a look at the term vector support new in v1.4.  For a document 
number and field name, you get terms and frequencies:

     TermFreqVector vector =
         reader.getTermFreqVector(id, "contents");

Note: you do need to set the storeTermVectors flag on the field during 
indexing to enable it.

Erik


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


Mime
View raw message