scoring library
Classes
- Boost
- A single boost - can either be an amount, or a percent
- BoostTokenScoring
- Boosts certain tokens, like firstName or lastName. This assumes your tokenizer routine also provided named tokens.
- MatchAllTermsScoring
- Scoring that applies a boost if all search terms are a match
- MatchedTermsScoring
- Applies a linear boost based on the number of search terms that were matched. See MatchAllTermsScoring
- MatchedTokensScoring
- Applies a boost for matched tokens, but adjusts the boost based on whether the term is an exact match, a prefix match, or a contains match
- Score
- Represents an accumulating score for a search term.
- SearchScoring
- A scoring algorithm for search results.