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



Reply via email to