The below modification DID work.  I was using the Luke tool to browse the
Lucene data, and finding no hint of term vectors for the contents.  It
turned out that since content bodies were not stored, but just indexed.  The
hasTermVectors property is null, but you can get term vectors directly out
of IndexReader for any documents.

Thanks.

-----Original Message-----
From: Kenji [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 29, 2005 5:37 PM
To: [email protected]
Subject: Lucene term-vector

Anybody using term-vectors?  Modifying BasicIndexFilter to enable the
term-vector option for contents doesn't seem to produce any:

    // content is indexed, so that it's searchable, but not stored in index
    doc.add(Field.UnStored("content", parse.getText(), true));

Any ideas?
 
-Kenji

Reply via email to