public interface QueryBuilder
Query can
be obtained from the final Termination object of the invocation chain.
If required, the resulting Query instance can be modified or combined with other queries, be them created
via this fluent API or using native Lucene APIs.| 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 request
|
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. |
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 range queryBooleanJunction<BooleanJunction> bool()
BooleanJunction instance for building the boolean queryAllContext all()
AllContextFacetContext facet()
SpatialContext spatial()
MoreLikeThisContext moreLikeThis()
MoreLikeThisCopyright © 2006–2014 Hibernate. All rights reserved.