You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Cam Bazz <ca...@gmail.com> on 2008/08/13 01:39:40 UTC

top terms

hello,

how do we get the terms with the highest frequency for a given field?

I know one can TermEnum terms = searcher.getIndexReader().terms() then,
iterate over it and filter the fields required and count them,
but is there a way to get lets say top 50 terms for a given field without
iterating?

Best Regards,
-C.B.