Package org.hibernate.search.query.dsl
Interface QueryBuilder
-
@Deprecated public interface QueryBuilder
Deprecated.Instead of using Hibernate Search 5 APIs, get aorg.hibernate.search.mapper.orm.session.SearchSessionusingorg.hibernate.search.mapper.orm.Search#session(org.hibernate.Session), create aSearchQuerywithorg.hibernate.search.mapper.orm.session.SearchSession#search(Class), and define your predicates usingSearchQueryWhereStep.where(Function). Refer to the migration guide for more information.Builds up Lucene queries for a given entity type following the fluent API pattern.The resulting
If required, the resultingQuerycan be obtained from the finalTerminationobject of the invocation chain.Queryinstance can be modified or combined with other queries created via this fluent API or via the native Lucene API.- Author:
- Emmanuel Bernard
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description AllContextall()Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6.BooleanJunction<BooleanJunction>bool()Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6.FacetContextfacet()Deprecated.See the deprecation note onFacetContext.TermContextkeyword()Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6.PhraseContextphrase()Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6.RangeContextrange()Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6.SimpleQueryStringContextsimpleQueryString()Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6.SortContextsort()Deprecated.See the deprecation note onSortContext.SpatialContextspatial()Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6.
-
-
-
Method Detail
-
keyword
@Deprecated TermContext keyword()
Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.match(). For wildcard predicates, useSearchPredicateFactory.wildcard().Build a term query (seeTermQuery).- Returns:
- a
TermContextinstance for building the term query
-
range
@Deprecated RangeContext range()
Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.range().Build a range query (seeTermRangeQuery.- Returns:
- a
RangeContextinstance for building the range query
-
phrase
@Deprecated PhraseContext phrase()
Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.phrase().Build a phrase query (seePhraseQuery).- Returns:
- a
PhraseContextinstance for building the phrase query
-
simpleQueryString
@Deprecated SimpleQueryStringContext simpleQueryString()
Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.simpleQueryString().Build a query from a simple query string.- Returns:
- a
SimpleQueryStringContextinstance for building a query from a simple query string
-
bool
@Deprecated BooleanJunction<BooleanJunction> bool()
Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.bool().Start for building a boolean query.- Returns:
- a
BooleanJunctioninstance for building the boolean query
-
all
@Deprecated AllContext all()
Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.matchAll().Query matching all documents (typically mixed with a boolean query).- Returns:
- an
AllContext
-
facet
@Deprecated FacetContext facet()
Deprecated.See the deprecation note onFacetContext.Build a facet query.- Returns:
- the facet context as entry point for building the facet request
-
spatial
SpatialContext spatial()
Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.spatial().Build a spatial query.- Returns:
- the spatial context as entry point got building the spatial request
-
sort
@Deprecated SortContext sort()
Deprecated.See the deprecation note onSortContext.Build a sort that can be applied to a query execution. When multiple sort definitions are expressed, they are processed in decreasing priority.- Returns:
- the entry point for building a sort
-
-