Interface TermsPredicateMatchingStep<N extends TermsPredicateOptionsStep<?>>
- Type Parameters:
N
- The type of the next step.
- All Known Subinterfaces:
TermsPredicateFieldMoreStep<S,
N>
public interface TermsPredicateMatchingStep<N extends TermsPredicateOptionsStep<?>>
The step in a "terms" predicate definition where the terms to match can be set.
-
Method Summary
Modifier and TypeMethodDescriptiondefault N
matchingAll
(Object firstTerm, Object... otherTerms) Require at least one of the targeted fields to match all of the provided terms.default N
matchingAll
(Collection<?> terms) Require at least one of the targeted fields to match all of the provided terms.matchingAll
(Collection<?> terms, ValueConvert convert) Require at least one of the targeted fields to match all of the provided terms.default N
matchingAny
(Object firstTerm, Object... otherTerms) Require at least one of the targeted fields to match any of the provided terms.default N
matchingAny
(Collection<?> terms) Require at least one of the targeted fields to match any of the provided terms.matchingAny
(Collection<?> terms, ValueConvert convert) Require at least one of the targeted fields to match any of the provided terms.
-
Method Details
-
matchingAny
Require at least one of the targeted fields to match any of the provided terms.- Parameters:
firstTerm
- The (first) term to match.otherTerms
- The others (optional) terms to match. The signature of this method defines these parameter as aObject
, but a specific type is expected depending on the targeted field. SeeValueConvert.YES
for more information.- Returns:
- The next step.
-
matchingAny
Require at least one of the targeted fields to match any of the provided terms.- Parameters:
terms
- The terms to match. The signature of this method defines this parameter as aCollection
of anyObject
, but a specific type is expected depending on the targeted field. SeeValueConvert.YES
for more information.- Returns:
- The next step.
-
matchingAny
Require at least one of the targeted fields to match any of the provided terms.- Parameters:
terms
- The terms to match. The signature of this method defines this parameter as aCollection
of anyObject
, but a specific type is expected depending on the targeted field and on theconvert
parameter. SeeValueConvert
for more information.convert
- Controls how thevalue
should be converted before Hibernate Search attempts to interpret it as a field value. SeeValueConvert
for more information.- Returns:
- The next step.
-
matchingAll
Require at least one of the targeted fields to match all of the provided terms.- Parameters:
firstTerm
- The (first) term to match.otherTerms
- The others (optional) terms to match. The signature of this method defines these parameter as aObject
, but a specific type is expected depending on the targeted field. SeeValueConvert.YES
for more information.- Returns:
- The next step.
-
matchingAll
Require at least one of the targeted fields to match all of the provided terms.- Parameters:
terms
- The terms to match. The signature of this method defines this parameter as aCollection
of anyObject
, but a specific type is expected depending on the targeted field. SeeValueConvert.YES
for more information.- Returns:
- The next step.
-
matchingAll
Require at least one of the targeted fields to match all of the provided terms.- Parameters:
terms
- The terms to match. The signature of this method defines this parameter as aCollection
of anyObject
, but a specific type is expected depending on the targeted field and on theconvert
parameter. SeeValueConvert
for more information.convert
- Controls how thevalue
should be converted before Hibernate Search attempts to interpret it as a field value. SeeValueConvert
for more information.- Returns:
- The next step.
-