Class LuceneSearchPredicateFactoryImpl
java.lang.Object
org.hibernate.search.engine.search.predicate.dsl.spi.AbstractSearchPredicateFactory<LuceneSearchPredicateFactory,LuceneSearchPredicateIndexScope<?>>
org.hibernate.search.backend.lucene.search.predicate.dsl.impl.LuceneSearchPredicateFactoryImpl
- All Implemented Interfaces:
LuceneSearchPredicateFactory,ExtendedSearchPredicateFactory<LuceneSearchPredicateFactory>,SearchPredicateFactory
public class LuceneSearchPredicateFactoryImpl
extends AbstractSearchPredicateFactory<LuceneSearchPredicateFactory,LuceneSearchPredicateIndexScope<?>>
implements LuceneSearchPredicateFactory
-
Field Summary
Fields inherited from class org.hibernate.search.engine.search.predicate.dsl.spi.AbstractSearchPredicateFactory
dslContext -
Constructor Summary
ConstructorsConstructorDescriptionLuceneSearchPredicateFactoryImpl(SearchPredicateDslContext<LuceneSearchPredicateIndexScope<?>> dslContext) -
Method Summary
Modifier and TypeMethodDescriptionfromLuceneQuery(org.apache.lucene.search.Query luceneQuery) Create a predicate from a LuceneQuery.Create a new predicate factory whose root for all paths passed to the DSL will be the given object field.Methods inherited from class org.hibernate.search.engine.search.predicate.dsl.spi.AbstractSearchPredicateFactory
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, withParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
LuceneSearchPredicateFactoryImpl
public LuceneSearchPredicateFactoryImpl(SearchPredicateDslContext<LuceneSearchPredicateIndexScope<?>> dslContext)
-
-
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 interfaceExtendedSearchPredicateFactory<LuceneSearchPredicateFactory>- 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.
-
fromLuceneQuery
Description copied from interface:LuceneSearchPredicateFactoryCreate a predicate from a LuceneQuery.- Specified by:
fromLuceneQueryin interfaceLuceneSearchPredicateFactory- Parameters:
luceneQuery- A Lucene query.- Returns:
- The final step of the predicate DSL.
-