lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: How to find most popular terms quickly?
Date Wed, 27 Feb 2008 06:09:04 GMT

: 1) open IndexReader.
: 2) call terms() to get all terms, then filter out terms in field Brand.
: 3) call termDocs(Term) to get Docs having each special Brand.
: 4) count which term is used by most docs from above result.
: 
: Is this the most efficient way?

pretty much ... take a look at the HighFreqTerms class in the 
"miscellaneous" contrib.


-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message