Elasticsearch::DSL::Search::Queries::BoolQuery
Inherits Elasticsearch::DSL::Search::Queries::Base < Reference < Object
Bool Query AIP: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html
Constructors
new
Instance methods
bool
Sourceboost(boost : Union(Type::Number, Nil))
filter(_q : Q.class, &) forall Q
filter(query : Base)
Sourcefilter(filter : Base | Union(Array(Base), Nil))
minimum_should_match(minimum_should_match : Type::Int | Union(String, Nil))
must(_q : Q.class, &) forall Q
must(query : Base)
Sourcemust(must : Base | Union(Array(Base), Nil))
must_not(_q : Q.class, &) forall Q
must_not(query : Base)
Sourcemust_not(must_not : Base | Union(Array(Base), Nil))
should(_q : Q.class, &) forall Q
should(query : Base)
Sourceshould(should : Base | Union(Array(Base), Nil))
to_json(json : JSON::Builder)
Source