Interface QueryBuilder

All Known Implementing Classes:
ConnectedQueryBuilder

public interface QueryBuilder
  • Method Details

    • 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

      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