lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atcach <atc...@gmail.com>
Subject Re: Retrieving the term vectors of a document in Nutch
Date Tue, 10 Jan 2012 13:34:08 GMT
Hi House
I had the same problem and tried the same solution, but I am getting an
empty termDocs. How have you done it ?
My code is:
TermDocs td = ir.termDocs();
			// Primero los guardo en un temporal porque ponerlos en un array no puedo
porque me falta la cantidad
			
		    while (td.next()) {
		         if (td.doc() == m_docNro) {
		        	 tfs.add(td.toString());
		        	 System.out.println("Documento:" + td.toString());
		             tfi.add(td.freq());
		         }

----
It never enters the while.
Regards !

--
View this message in context: http://lucene.472066.n3.nabble.com/Retrieving-the-term-vectors-of-a-document-in-Nutch-tp560993p3647617.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
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