public class BooleanSimilarityProvider extends AbstractSimilarityProvider
SimilarityProvider for the BooleanSimilarity,
which is a simple similarity that gives terms a score equal
to their query boost only. This is useful in situations where
a field does not need to be scored by a full-text ranking
algorithm, but rather all that matters is whether the query
terms matched or not.NO_NORMALIZATION| Constructor and Description |
|---|
BooleanSimilarityProvider(java.lang.String name,
Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.search.similarities.BooleanSimilarity |
get()
Returns the
Similarity the Provider is for |
name, parseNormalizationpublic BooleanSimilarityProvider(java.lang.String name,
Settings settings)