A term and frequencies builder, allows to set different settings regaring
the avilable terms for certain properties and their respective frequencies.
Allows to narrow down the sub indexes searched either by setting the aliases
or the sub indexes (or both of them).
Allows to set how the returned terns will be sort. Either by the TERM value or
the TERM frequency. Note, the (adjustable) size of terms will always be based on
the ones with the highest frequency. Within this size based list (controlled using
CompassTermFreqsBuilder.setSize(int) ), the sorting will occur.
By default, the frequency will be returned according to the search engine
implementation values (in Lucene, it is the doc freq). The builder allows to
normalize this values. For example, to values between 0 and 1, 0 and 100, or
any other range.
author: kimchy |