object MinimumShouldMatch
- Alphabetic
- By Inheritance
- MinimumShouldMatch
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class Combination(conditions: NonEmptyChunk[Condition]) extends MinimumShouldMatch with Product with Serializable
One or more conditional specifications, evaluated from left to right.
One or more conditional specifications, evaluated from left to right. Each condition whose
thresholdis less than the number of optional clauses overrides the previous one, and the evaluation stops at the first condition whosethresholdis greater than or equal to it. If no condition applies, all optional clauses are required.Therefore, the conditions should be given in ascending order of their
thresholdvalues (e.g. with 5 optional clauses,9<-3 2<-25%requires all 5 of them); this type does not validate this.- conditions
the non-empty chunk of zio.elasticsearch.query.MinimumShouldMatch.Conditions
- final case class Condition(threshold: Int, value: Simple) extends Product with Serializable
A conditional specification used within a zio.elasticsearch.query.MinimumShouldMatch.Combination.
A conditional specification used within a zio.elasticsearch.query.MinimumShouldMatch.Combination. If the total number of optional clauses is less than or equal to the
threshold, all of them are required. Otherwise, the givenvalueapplies.- threshold
the number of optional clauses up to which all of them are required
- value
the zio.elasticsearch.query.MinimumShouldMatch.Simple value that applies when the number of optional clauses is greater than the
threshold
- final case class Count(value: Int) extends Simple with Product with Serializable
A fixed number of optional clauses.
A fixed number of optional clauses. A positive value is the number of optional clauses that must match, regardless of the total number of optional clauses. A negative value is the number of optional clauses that may be missing, i.e., the total number of optional clauses minus this number must match.
- value
the number of optional clauses that must match (if positive) or may be missing (if negative)
- final case class Percentage(value: Int) extends Simple with Product with Serializable
A percentage of the total number of optional clauses.
A percentage of the total number of optional clauses. A positive value is the percentage of optional clauses that must match, while a negative value is the percentage of optional clauses that may be missing. The computed number is rounded down.
- value
the percentage of optional clauses that must match (if positive) or may be missing (if negative)
- sealed trait Simple extends MinimumShouldMatch
A
minimum_should_matchvalue that is either a fixed number or a percentage of optional clauses.
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 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])
- object Combination extends Serializable