Hello all,

I would like to be able to get the term frequency for a given term in a 
given document. As far as I can see, TermFrequencyVector is the only way to 
do this, but it seems that this vector is not creted by default at the 
indexing phase in Nutch/Lucene. Strangely, I can see the term frequency in 
the Nutch web-gui under "Explain", so the information about term frequency 
is obviously there somewhere. So:

1. Is there a way to access term frequency without the use of 
TermFrequencyVector? I would love something like int tf = 
getTermFrequency(document, field, term)
2. How can I make Nutch/Lucene create the TermVector and does this involve 
any recompiling?

I realize that this might be a trivial question, but any help would greatly 
be appreciated nevertheless...

Best regards,

Erik

_________________________________________________________________
Satsa på kärleken i höst! http://www.msn.se/dejting/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to