lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cam Bazz" <camb...@gmail.com>
Subject top terms
Date Tue, 12 Aug 2008 23:39:40 GMT
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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message