lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Chen <chen_...@yahoo.com>
Subject TermFreqVector
Date Thu, 19 Jul 2007 20:58:29 GMT
I need to use getTermFreqVector on a subset of docs that belong to the hits for a query. I
understand I need to pass the docNumber as an argument in this case. How do I access that.

For ex .

doc = hits.doc(0);
TermFreqVector vector = reader.getTermFreqVector(docId, "field");


How do I get docId? 

       
---------------------------------
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message