sealed trait BoolQuery[S] extends ElasticQuery[S] with HasBoost[BoolQuery[S]] with HasMinimumShouldMatch[BoolQuery[S]]
- Alphabetic
- By Inheritance
- BoolQuery
- HasMinimumShouldMatch
- HasBoost
- ElasticQuery
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def boost(value: Double): BoolQuery[S]
Sets the
boostparameter for this zio.elasticsearch.query.ElasticQuery.Sets the
boostparameter for this zio.elasticsearch.query.ElasticQuery. Theboostvalue is a positive multiplier applied to the score of documents matching the query. A value greater than 1 increases the relevance score of matching documents, while a value less than 1 decreases it. The defaultboostvalue is 1.- value
a non-negative real number to set
boostparameter to- returns
a new instance of the zio.elasticsearch.query.ElasticQuery with the
boostvalue set.
- Definition Classes
- HasBoost
- abstract def filter(queries: ElasticQuery[Any]*): BoolQuery[S]
Adds specified
filterqueries to the zio.elasticsearch.query.BoolQuery.Adds specified
filterqueries to the zio.elasticsearch.query.BoolQuery. These queries must appear in matching documents. Unlikemustthe score of the query will be ignored.- queries
the
filterqueries to be added- returns
an instance of the zio.elasticsearch.query.BoolQuery with
filterqueries added.
- abstract def filter[S1 <: S](queries: ElasticQuery[S1]*)(implicit arg0: Schema[S1]): BoolQuery[S1]
Adds specified
filterqueries to the zio.elasticsearch.query.BoolQuery.Adds specified
filterqueries to the zio.elasticsearch.query.BoolQuery. These queries must appear in matching documents. Unlikemustthe score of the query will be ignored.- S1
the type of the sub-queries, for which an implicit zio.schema.Schema is required
- queries
the
filterqueries to be added- returns
an instance of the zio.elasticsearch.query.BoolQuery with
filterqueries added.
- abstract def minimumShouldMatch(value: MinimumShouldMatch): BoolQuery[S]
Sets the
minimumShouldMatchparameter for this zio.elasticsearch.ElasticQuery.Sets the
minimumShouldMatchparameter for this zio.elasticsearch.ElasticQuery. TheminimumShouldMatchvalue is the minimum number of optional clauses (e.g.shouldclauses of a zio.elasticsearch.query.BoolQuery or terms of a full text query) that returned documents must match. Its default value depends on the query type.- value
the zio.elasticsearch.query.MinimumShouldMatch to set
minimumShouldMatchparameter to, possible values are:- zio.elasticsearch.query.MinimumShouldMatch.Count: a fixed number of clauses, e.g.
3or-2 - zio.elasticsearch.query.MinimumShouldMatch.Percentage: a percentage of clauses, e.g.
75%or-25% - zio.elasticsearch.query.MinimumShouldMatch.Combination: one or more conditional specifications, e.g.
3<90%or2<-25% 9<-3
- zio.elasticsearch.query.MinimumShouldMatch.Count: a fixed number of clauses, e.g.
- returns
a new instance of the zio.elasticsearch.ElasticQuery with the
minimumShouldMatchvalue set.
- Definition Classes
- HasMinimumShouldMatch
- abstract def must(queries: ElasticQuery[Any]*): BoolQuery[S]
Adds specified
mustqueries to the zio.elasticsearch.query.BoolQuery.Adds specified
mustqueries to the zio.elasticsearch.query.BoolQuery. These queries must appear in matching documents and will contribute to the score.- queries
the
mustqueries to be added- returns
an instance of the zio.elasticsearch.query.BoolQuery with
mustqueries added.
- abstract def must[S1 <: S](queries: ElasticQuery[S1]*)(implicit arg0: Schema[S1]): BoolQuery[S1]
Adds specified
mustqueries to the zio.elasticsearch.query.BoolQuery.Adds specified
mustqueries to the zio.elasticsearch.query.BoolQuery. These queries must appear in matching documents and will contribute to the score.- S1
the type of the sub-queries, for which an implicit zio.schema.Schema is required
- queries
the
mustqueries to be added- returns
an instance of the zio.elasticsearch.query.BoolQuery with
mustqueries added.
- abstract def mustNot(queries: ElasticQuery[Any]*): BoolQuery[S]
Adds specified
must notqueries to the zio.elasticsearch.query.BoolQuery.Adds specified
must notqueries to the zio.elasticsearch.query.BoolQuery. These queries must not appear in matching documents.- queries
the
must notqueries to be added- returns
an instance of the zio.elasticsearch.query.BoolQuery with
must notqueries added.
- abstract def mustNot[S1 <: S](queries: ElasticQuery[S1]*)(implicit arg0: Schema[S1]): BoolQuery[S1]
Adds specified
must notqueries to the zio.elasticsearch.query.BoolQuery.Adds specified
must notqueries to the zio.elasticsearch.query.BoolQuery. These queries must not appear in matching documents.- S1
the type of the sub-queries, for which an implicit zio.schema.Schema is required
- queries
the
must notqueries to be added- returns
an instance of the zio.elasticsearch.query.BoolQuery with
must notqueries added.
- abstract def should(queries: ElasticQuery[Any]*): BoolQuery[S]
Adds specified
shouldqueries to the zio.elasticsearch.query.BoolQuery.Adds specified
shouldqueries to the zio.elasticsearch.query.BoolQuery. These queries should appear in matching documents.- queries
the
shouldqueries to be added- returns
an instance of the zio.elasticsearch.query.BoolQuery with
shouldqueries added.
- abstract def should[S1 <: S](queries: ElasticQuery[S1]*)(implicit arg0: Schema[S1]): BoolQuery[S1]
Adds specified
shouldqueries to the zio.elasticsearch.query.BoolQuery.Adds specified
shouldqueries to the zio.elasticsearch.query.BoolQuery. These queries should appear in matching documents.- S1
the type of the sub-queries, for which an implicit zio.schema.Schema is required
- queries
the
shouldqueries to be added- returns
an instance of the zio.elasticsearch.query.BoolQuery with
shouldqueries added.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def minimumShouldMatch(value: Int): BoolQuery[S]
Sets the
minimumShouldMatchparameter for this zio.elasticsearch.ElasticQuery.Sets the
minimumShouldMatchparameter for this zio.elasticsearch.ElasticQuery. TheminimumShouldMatchvalue is the minimum number of optional clauses (e.g.shouldclauses of a zio.elasticsearch.query.BoolQuery or terms of a full text query) that returned documents must match. Its default value depends on the query type.This is a shorthand for
minimumShouldMatch(MinimumShouldMatch.Count(value)).- value
a number to set
minimumShouldMatchparameter to; a negative number is the number of optional clauses that may be missing- returns
a new instance of the zio.elasticsearch.ElasticQuery with the
minimumShouldMatchvalue set.
- Definition Classes
- HasMinimumShouldMatch
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])