Interface ExtendedSearchPredicateFactory<S extends ExtendedSearchPredicateFactory<?>>
- Type Parameters:
S- The self type, i.e. the exposed type of this factory.
- All Superinterfaces:
SearchPredicateFactory
- All Known Subinterfaces:
ElasticsearchSearchPredicateFactory,LuceneSearchPredicateFactory
- All Known Implementing Classes:
AbstractSearchPredicateFactory,ElasticsearchSearchPredicateFactoryImpl,LuceneSearchPredicateFactoryImpl
public interface ExtendedSearchPredicateFactory<S extends ExtendedSearchPredicateFactory<?>>
extends SearchPredicateFactory
A base interface for subtypes of
SearchPredicateFactory allowing to
easily override the self type for all relevant methods.
Warning: Generic parameters of this type are subject to change, so this type should not be referenced directly in user code.
-
Method Summary
Methods inherited from interface org.hibernate.search.engine.search.predicate.dsl.SearchPredicateFactory
and, and, and, bool, bool, exists, extension, extension, id, knn, match, matchAll, matchNone, named, nested, nested, not, not, or, or, or, phrase, prefix, queryString, range, regexp, simpleQueryString, spatial, terms, toAbsolutePath, wildcard, withParameters
-
Method Details
-
withRoot
Description copied from interface:SearchPredicateFactoryCreate a new predicate factory whose root for all paths passed to the DSL will be the given object field.This is used to call reusable methods that apply the same predicate on different object fields that have same structure (same sub-fields).
- Specified by:
withRootin interfaceSearchPredicateFactory- Parameters:
objectFieldPath- The path from the current root to an object field that will become the new root.- Returns:
- A new predicate factory using the given object field as root.
-