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()
Build a query matching resembling content.
|
PhraseContext |
phrase()
Build a phrase query (see
PhraseQuery). |
RangeContext |
range()
Build a range query (see
TermRangeQuery. |
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 queryBooleanJunction<BooleanJunction> bool()
BooleanJunction instance for building the boolean queryAllContext all()
AllContextFacetContext facet()
SpatialContext spatial()
MoreLikeThisContext moreLikeThis()
MoreLikeThisSortContext sort()
Copyright © 2006–2017 Hibernate. All rights reserved.