lucene-java-user mailing list archives

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

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(terms.next()) {
	TermDocs docs=IndexReader.termDocs(terms.term());
	while(docs.next()) {
		//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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message