lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Soeren Pekrul <>
Subject How to get Term Weights (document term matrix)?
Date Thu, 02 Nov 2006 11:45:30 GMT

I would like to extract and store the document term matrix externally. I 
iterate the terms and the documents for each term:
TermEnum terms=IndexReader.terms();
while( {
	TermDocs docs=IndexReader.termDocs(terms.term());
	while( {
		//store the term, the document and the weight

How can I get the term weight for a document?

Thanks. Sören

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

View raw message