Package org.hibernate.search.query.dsl
Interface QueryBuilder
- All Known Implementing Classes:
ConnectedQueryBuilder
public interface QueryBuilder
-
Method Summary
Modifier and TypeMethodDescriptionall()Query matching all documents (typically mixed with a boolean query).bool()Start for building a boolean query.facet()Build a facet requestkeyword()Build a term query (seeTermQuery).phrase()Build a phrase query (seePhraseQuery).range()Build a range query (seeTermRangeQuery.
-
Method Details
-
keyword
TermContext keyword()Build a term query (seeTermQuery).- Returns:
- a
TermContextinstance for building the term query
-
range
RangeContext range()Build a range query (seeTermRangeQuery.- Returns:
- a
RangeContextinstance for building the range query
-
phrase
PhraseContext phrase()Build a phrase query (seePhraseQuery).- Returns:
- a
PhraseContextinstance for building the range query
-
bool
BooleanJunction<BooleanJunction> bool()Start for building a boolean query.- Returns:
- a
BooleanJunctioninstance for building the boolean query
-
all
AllContext all()Query matching all documents (typically mixed with a boolean query).- Returns:
- an
AllContext
-
facet
FacetContext facet()Build a facet request- Returns:
- the facet context as entry point for building the facet request
-