Package org.hibernate.search.query.dsl
Interface QueryBuilder
Deprecated.
Builds up Lucene queries for a given entity type following the fluent API pattern.
The resulting Query can
be obtained from the final Termination object of the invocation chain.
Query instance can be modified or combined with other queries created
via this fluent API or via the native Lucene API.- Author:
- Emmanuel Bernard
-
Method Summary
Modifier and TypeMethodDescriptionall()Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6.bool()Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6.facet()Deprecated.See the deprecation note onFacetContext.keyword()Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6.phrase()Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6.range()Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6.Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6.sort()Deprecated.See the deprecation note onSortContext.spatial()Deprecated.See the javadoc of this class for how to create predicates in Hibernate Search 6.
-
Method Details
-
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.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.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.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.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.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.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.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
-
org.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.