Class BoolQueryBuilder

All Implemented Interfaces:
NamedWriteable, VersionedNamedWriteable, Writeable, QueryBuilder, Rewriteable<QueryBuilder>, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class BoolQueryBuilder extends AbstractQueryBuilder<BoolQueryBuilder>
A Query that matches documents matching boolean combinations of other queries.
  • Field Details

  • Constructor Details

    • BoolQueryBuilder

      public BoolQueryBuilder()
      Build an empty bool query.
    • BoolQueryBuilder

      public BoolQueryBuilder(StreamInput in) throws IOException
      Read from a stream.
      Throws:
      IOException
  • Method Details