org.hibernate.search.query.dsl
Interface QueryBuilder

All Known Implementing Classes:
ConnectedQueryBuilder

public interface QueryBuilder

Author:
Emmanuel Bernard

Method Summary
 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).
 PhraseContext phrase()
          Build a phrase query (see PhraseQuery).
 RangeContext range()
          Build a range query (see TermRangeQuery.
 

Method Detail

keyword

TermContext keyword()
Build a term query (see TermQuery).

Returns:
a TermContext instance for building the term query

range

RangeContext range()
Build a range query (see TermRangeQuery.

Returns:
a RangeContext instance for building the range query

phrase

PhraseContext phrase()
Build a phrase query (see PhraseQuery).

Returns:
a PhraseContext instance for building the range query

bool

BooleanJunction<BooleanJunction> bool()
Start for building a boolean query.

Returns:
a BooleanJunction instance 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


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved