public interface MatchAllPredicateContext extends SearchPredicateNoFieldContext<MatchAllPredicateContext>, SearchPredicateTerminalContext
Modifier and Type | Method and Description |
---|---|
MatchAllPredicateContext |
except(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> clauseContributor)
Add a "must not" clause to be defined by the given function.
|
MatchAllPredicateContext |
except(SearchPredicate searchPredicate)
Add a "must not" clause based on a previously-built
SearchPredicate , |
default MatchAllPredicateContext |
except(SearchPredicateTerminalContext terminalContext)
Add a "must not" clause based on an almost-built
SearchPredicate . |
boostedTo
toPredicate
MatchAllPredicateContext except(SearchPredicate searchPredicate)
SearchPredicate
,
Documents matching the "must not" clause won't match the "match all" predicate.
searchPredicate
- The predicate that must not match.this
, for method chaining.default MatchAllPredicateContext except(SearchPredicateTerminalContext terminalContext)
SearchPredicate
.
Documents matching the "must not" clause won't match the "match all" predicate.
terminalContext
- The terminal context allowing to retrieve a SearchPredicate
.MatchAllPredicateContext except(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> clauseContributor)
Best used with lambda expressions.
Documents matching the "must not" clause won't match the "match all" predicate.
clauseContributor
- A function that will use the DSL context passed in parameter to create a predicate,
returning the resulting terminal context.
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.