public interface BooleanPredicateClausesStep extends PredicateScoreStep<BooleanPredicateClausesStep>, PredicateFinalStep
Different types of clauses have different effects, see below.
"must" clauses are required to match: if they don't match, then the boolean predicate will not match.
Matching "must" clauses are taken into account in score computation.
"must not" clauses are required to not match: if they don't match, then the boolean predicate will not match.
"must not" clauses are ignored from score computation.
"must not" clauses are
"filter" clauses are required to match: if they don't match, then the boolean predicate will not match.
"filter" clauses are ignored from score computation, and so are any clauses of boolean predicates contained in the filter clause (even "match" or "should" clauses).
"should" clauses may optionally match, and are required to match depending on the context.
Matching "should" clauses are taken into account in score computation.
withConstantScoreboostedTotoPredicateBooleanPredicateClausesStep must(SearchPredicate searchPredicate)
SearchPredicate.searchPredicate - The predicate that must match.this, for method chaining.BooleanPredicateClausesStep mustNot(SearchPredicate searchPredicate)
SearchPredicate.searchPredicate - The predicate that must not match.this, for method chaining.BooleanPredicateClausesStep should(SearchPredicate searchPredicate)
SearchPredicate.searchPredicate - The predicate that should match.this, for method chaining.BooleanPredicateClausesStep filter(SearchPredicate searchPredicate)
SearchPredicate.searchPredicate - The predicate that must match.this, for method chaining.default BooleanPredicateClausesStep must(PredicateFinalStep dslFinalStep)
SearchPredicate.dslFinalStep - A final step in the predicate DSL allowing the retrieval of a SearchPredicate.this, for method chaining.default BooleanPredicateClausesStep mustNot(PredicateFinalStep dslFinalStep)
SearchPredicate.dslFinalStep - A final step in the predicate DSL allowing the retrieval of a SearchPredicate.this, for method chaining.default BooleanPredicateClausesStep should(PredicateFinalStep dslFinalStep)
SearchPredicate.dslFinalStep - A final step in the predicate DSL allowing the retrieval of a SearchPredicate.this, for method chaining.default BooleanPredicateClausesStep filter(PredicateFinalStep dslFinalStep)
SearchPredicate.dslFinalStep - A final step in the predicate DSL allowing the retrieval of a SearchPredicate.this, for method chaining.BooleanPredicateClausesStep must(Function<? super SearchPredicateFactory,? extends PredicateFinalStep> clauseContributor)
Best used with lambda expressions.
clauseContributor - A function that will use the factory passed in parameter to create a predicate,
returning the final step in the predicate DSL.
Should generally be a lambda expression.this, for method chaining.BooleanPredicateClausesStep mustNot(Function<? super SearchPredicateFactory,? extends PredicateFinalStep> clauseContributor)
Best used with lambda expressions.
clauseContributor - A function that will use the factory passed in parameter to create a predicate,
returning the final step in the predicate DSL.
Should generally be a lambda expression.this, for method chaining.BooleanPredicateClausesStep should(Function<? super SearchPredicateFactory,? extends PredicateFinalStep> clauseContributor)
Best used with lambda expressions.
clauseContributor - A function that will use the factory passed in parameter to create a predicate,
returning the final step in the predicate DSL.
Should generally be a lambda expression.this, for method chaining.BooleanPredicateClausesStep filter(Function<? super SearchPredicateFactory,? extends PredicateFinalStep> clauseContributor)
Best used with lambda expressions.
clauseContributor - A function that will use the factory passed in parameter to create a predicate,
returning the final step in the predicate DSL.
Should generally be a lambda expression.this, for method chaining.default BooleanPredicateClausesStep minimumShouldMatchNumber(int matchingClausesNumber)
matchingClausesNumber - A definition of the number of "should" clauses that have to match.
If positive, it is the number of clauses that have to match.
See Definition of the minimum
for details and possible values, in particular negative values.this, for method chaining.default BooleanPredicateClausesStep minimumShouldMatchPercent(int matchingClausesPercent)
matchingClausesPercent - A definition of the number of "should" clauses that have to match, as a percentage.
If positive, it is the percentage of the total number of "should" clauses that have to match.
See Definition of the minimum
for details and possible values, in particular negative values.this, for method chaining.MinimumShouldMatchConditionStep<? extends BooleanPredicateClausesStep> minimumShouldMatch()
MinimumShouldMatchConditionStep where constraints can be defined.BooleanPredicateClausesStep minimumShouldMatch(Consumer<? super MinimumShouldMatchConditionStep<?>> constraintContributor)
constraintContributor - A consumer that will add constraints to the DSL step passed in parameter.
Should generally be a lambda expression.this, for method chaining.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.