Interface PredicateScoreStep<S>
- Type Parameters:
S- The "self" type (the actual exposed type of this step)
- All Known Subinterfaces:
BooleanPredicateClausesStep<SR,,S> CommonQueryStringPredicateOptionsStep<S>,ExistsPredicateOptionsStep<S>,GenericBooleanPredicateClausesStep<SR,,S, C> KnnPredicateOptionsStep<SR>,MatchAllPredicateOptionsStep<SR,,S> MatchIdPredicateMatchingMoreStep<S,,N> MatchIdPredicateOptionsStep<S>,MatchPredicateOptionsStep<S>,NotPredicateFinalStep,PhrasePredicateOptionsStep<S>,PrefixPredicateOptionsStep<S>,QueryStringPredicateOptionsStep<S>,RangePredicateOptionsStep<S>,RegexpPredicateOptionsStep<S>,SimpleBooleanPredicateClausesStep<SR,,S> SimpleBooleanPredicateOptionsStep<S>,SimpleQueryStringPredicateOptionsStep<S>,SpatialWithinPredicateOptionsStep<S>,TermsPredicateOptionsStep<S>,WildcardPredicateOptionsStep<S>
public interface PredicateScoreStep<S>
The step in a predicate definition where score-related options can be set.
-
Method Summary
Modifier and TypeMethodDescriptionboost(float boost) Boost the weight of the predicate in score computation.Force the score of the predicate to a single constant, identical for all documents.
-
Method Details
-
boost
Boost the weight of the predicate in score computation.- Parameters:
boost- The boost factor. Higher than 1 increases the weight in score computation, between 0 and 1 lowers the weight. Lower than 0 is for experts only.- Returns:
this, for method chaining.
-
constantScore
S constantScore()Force the score of the predicate to a single constant, identical for all documents.By default, the score will be
1.0f, butboosts, if any, will still be applied to the predicate.- Returns:
this, for method chaining.
-