public interface QueryBuilder
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.| Modifier and Type | Method and Description |
|---|---|
AllContext |
all()
Query matching all documents (typically mixed with a boolean query).
|
BooleanJunction<BooleanJunction> |
bool()
Start for building a boolean query.
|
FacetContext |
facet()
Build a facet query.
|
TermContext |
keyword()
Build a term query (see
TermQuery). |
MoreLikeThisContext |
moreLikeThis()
Deprecated.
Support for more-like-this queries will be removed in Hibernate Search 6.
See this section of the migration guide.
|
PhraseContext |
phrase()
Build a phrase query (see
PhraseQuery). |
RangeContext |
range()
Build a range query (see
TermRangeQuery. |
SimpleQueryStringContext |
simpleQueryString()
Build a query from a simple query string.
|
SortContext |
sort()
Build a sort that can be applied to a query execution.
|
SpatialContext |
spatial()
Build a spatial query.
|
TermContext keyword()
TermQuery).TermContext instance for building the term queryRangeContext range()
TermRangeQuery.RangeContext instance for building the range queryPhraseContext phrase()
PhraseQuery).PhraseContext instance for building the phrase querySimpleQueryStringContext simpleQueryString()
SimpleQueryStringContext instance for building a query from a simple query stringBooleanJunction<BooleanJunction> bool()
BooleanJunction instance for building the boolean queryAllContext all()
AllContextFacetContext facet()
SpatialContext spatial()
@Deprecated MoreLikeThisContext moreLikeThis()
MoreLikeThisSortContext sort()
Copyright © 2006-2023 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.