Interface TermsPredicateMatchingStep<N extends TermsPredicateOptionsStep<?>>
- Type Parameters:
N- The type of the next step.
- All Known Subinterfaces:
TermsPredicateFieldMoreStep<SR,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 NmatchingAll(Object firstTerm, Object... otherTerms) Require at least one of the targeted fields to match all of the provided terms.default NmatchingAll(Collection<?> terms) Require at least one of the targeted fields to match all of the provided terms.default NmatchingAll(Collection<?> terms, ValueConvert convert) Deprecated.matchingAll(Collection<?> terms, ValueModel valueModel) Require at least one of the targeted fields to match all of the provided terms.default NmatchingAny(Object firstTerm, Object... otherTerms) Require at least one of the targeted fields to match any of the provided terms.default NmatchingAny(Collection<?> terms) Require at least one of the targeted fields to match any of the provided terms.default NmatchingAny(Collection<?> terms, ValueConvert convert) Deprecated.UsematchingAny(Collection, ValueModel)instead.matchingAny(Collection<?> terms, ValueModel valueModel) 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. SeeValueModel.MAPPINGfor 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 aCollectionof anyObject, but a specific type is expected depending on the targeted field. SeeValueModel.MAPPINGfor more information.- Returns:
- The next step.
-
matchingAny
Deprecated.UsematchingAny(Collection, ValueModel)instead.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 aCollectionof anyObject, but a specific type is expected depending on the targeted field and on theconvertparameter. SeeValueConvertfor more information.convert- Controls how thevalueshould be converted before Hibernate Search attempts to interpret it as a field value. SeeValueConvertfor 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 aCollectionof anyObject, but a specific type is expected depending on the targeted field and on thevalueModelparameter. SeeValueModelfor more information.valueModel- The model value, determines how thevalueshould be converted before Hibernate Search attempts to interpret it as a field value. SeeValueModelfor 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. SeeValueModel.MAPPINGfor 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 aCollectionof anyObject, but a specific type is expected depending on the targeted field. SeeValueModel.MAPPINGfor more information.- Returns:
- The next step.
-
matchingAll
Deprecated.UsematchingAll(Collection, ValueModel)instead.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 aCollectionof anyObject, but a specific type is expected depending on the targeted field and on theconvertparameter. SeeValueConvertfor more information.convert- Controls how thevalueshould be converted before Hibernate Search attempts to interpret it as a field value. SeeValueConvertfor 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 aCollectionof anyObject, but a specific type is expected depending on the targeted field and on thevalueModelparameter. SeeValueModelfor more information.valueModel- The model of term values, determines how thetermsshould be converted before Hibernate Search attempts to interpret them as field values. SeeValueModelfor more information.- Returns:
- The next step.
-
matchingAll(Collection, ValueModel)instead.