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
Constructors Constructor Description LuceneSearchPredicateFactoryImpl(SearchPredicateDslContext<LuceneSearchPredicateIndexScope<?>> dslContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PredicateFinalStepfromLuceneQuery(org.apache.lucene.search.Query luceneQuery)Create a predicate from a LuceneQuery.LuceneSearchPredicateFactorywithRoot(String objectFieldPath)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, match, matchAll, matchNone, named, nested, nested, not, not, or, or, or, phrase, range, regexp, simpleQueryString, spatial, terms, toAbsolutePath, wildcard
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.engine.search.predicate.dsl.SearchPredicateFactory
and, and, and, bool, bool, exists, extension, extension, id, match, matchAll, matchNone, named, nested, nested, not, not, or, or, or, phrase, range, regexp, simpleQueryString, spatial, terms, toAbsolutePath, wildcard
-
-
-
-
Constructor Detail
-
LuceneSearchPredicateFactoryImpl
public LuceneSearchPredicateFactoryImpl(SearchPredicateDslContext<LuceneSearchPredicateIndexScope<?>> dslContext)
-
-
Method Detail
-
withRoot
public LuceneSearchPredicateFactory withRoot(String objectFieldPath)
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
public PredicateFinalStep fromLuceneQuery(org.apache.lucene.search.Query luceneQuery)
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.
-
-