Interface PredicateDefinition
-
@Incubating public interface PredicateDefinition
A component able to define a predicate using the Hibernate Search Predicate DSL.This definition takes advantage of provided metadata to pick, configure and create a
SearchPredicate.Used in particular for named predicates, where the definition is given a name and assigned to an element in the index schema.
- See Also:
SearchPredicate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SearchPredicatecreate(PredicateDefinitionContext context)Creates a predicate.
-
-
-
Method Detail
-
create
SearchPredicate create(PredicateDefinitionContext context)
Creates a predicate.- Parameters:
context- The context, exposing in particular aSearchPredicateFactory.- Returns:
- The created
SearchPredicate.
-
-