lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From testn <>
Subject Re: Get the terms and frequency vector of an indexed but unstored field
Date Fri, 03 Aug 2007 11:36:48 GMT

you can use IndexReader.getTermFreqVectors(int n) to get all terms and their
frequencies. Make sure when you create an index, you choose option to store
it by specifying Field.TermVector option.
Check out

tierecke wrote:
> Hi,
> I indexed a large number of large documents, but I did not store the
> document themselves, just indexed them.
> Now I am interested in getting the vector (i.e.: the terms indexed and the
> frequency) of that indexed but unstored field.
> doc.getField (fieldname) returns null.
> How can I get the data? It must be there, since it's a part of the index,
> or am I wrong?
> Would be grateful for a quick result (need to submit data for a conference
> this weekend).
> thanks,
> Nir.

View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message