org.compass.core
Interface CompassTermFreqsBuilder

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
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.

normalize

Normalizes the result frequencies based on the provided min and max values. For
example, will normalize using 0 to 1 with the lowest frequency mapped to 0, the
highest frequency mapped to 1, and the rest are distributed within.