lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Can I get the most hot term ?
Date Sat, 23 Sep 2006 19:54:49 GMT
: I'm pretty sure you have to count them yourself, but that's made pretty easy
: by the TermEnum, TermFreqVector etc. classes. I have only used a few of
: these, so I can't be much help. But these sure seem like what you're looking
: for.

TermEnum has a docFreq member .. so you can iterate over it and record the
terms with the N highest docFreq using something like a PriorityQueue


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

View raw message