sealed trait MultiMatchQuery[S] extends ElasticQuery[S] with HasBoost[MultiMatchQuery[S]] with HasMinimumShouldMatch[MultiMatchQuery[S]]
- Alphabetic
- By Inheritance
- MultiMatchQuery
- HasMinimumShouldMatch
- HasBoost
- ElasticQuery
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def boost(value: Double): MultiMatchQuery[S]
Sets the
boost
parameter for this zio.elasticsearch.query.ElasticQuery.Sets the
boost
parameter for this zio.elasticsearch.query.ElasticQuery. Theboost
value 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 defaultboost
value is 1.- value
a non-negative real number to set
boost
parameter to- returns
a new instance of the zio.elasticsearch.query.ElasticQuery with the
boost
value set.
- Definition Classes
- HasBoost
- abstract def fields(field: String, fields: String*): MultiMatchQuery[S]
Sets the
fields
parameter for this zio.elasticsearch.query.ElasticQuery.Sets the
fields
parameter for this zio.elasticsearch.query.ElasticQuery. Thefields
parameter is array of fields that will be searched.- fields
a array of fields to set
fields
parameter to- returns
an instance of the zio.elasticsearch.query.ElasticQuery enriched with the
fields
parameter.
- abstract def fields[S1 <: S](field: Field[S1, String], fields: Field[S1, String]*)(implicit arg0: Schema[S1]): MultiMatchQuery[S1]
Sets the type-safe
fields
parameter for this zio.elasticsearch.query.ElasticQuery.Sets the type-safe
fields
parameter for this zio.elasticsearch.query.ElasticQuery. Thefields
parameter is array of type-safe fields that will be searched.- fields
a array of type-safe fields to set
fields
parameter to- returns
an instance of the zio.elasticsearch.query.ElasticQuery enriched with the type-safe
fields
parameter.
- abstract def matchingType(matchingType: MultiMatchType): MultiMatchQuery[S]
Sets the
type
parameter for this zio.elasticsearch.query.ElasticQuery.Sets the
type
parameter for this zio.elasticsearch.query.ElasticQuery. Thetype
parameter decides the way zio.elasticsearch.query.ElasticQuery is executed internally.- matchingType
the zio.elasticsearch.query.MultiMatchType value of 'type' parameter, possible values are:
- zio.elasticsearch.query.MultiMatchType.BestFields: runs a zio.elasticsearch.query.MatchQuery on each field and uses the score of the single best matching field
- zio.elasticsearch.query.MultiMatchType.BoolPrefix: runs a zio.elasticsearch.query.MatchBooleanPrefixQuery on each field and combines the score from each field
- zio.elasticsearch.query.MultiMatchType.CrossFields: looks for each word in any field
- zio.elasticsearch.query.MultiMatchType.MostFields: runs a zio.elasticsearch.query.MatchQuery on each field and combines the score from each field
- zio.elasticsearch.query.MultiMatchType.Phrase: runs a zio.elasticsearch.query.MatchPhraseQuery on each field and uses the score of the single best matching field
- zio.elasticsearch.query.MultiMatchType.PhrasePrefix: runs a zio.elasticsearch.query.MatchPhrasePrefixQuery on each field and uses the score of the single best matching field
- returns
an instance of the zio.elasticsearch.query.ElasticQuery enriched with the
type
parameter.
- abstract def minimumShouldMatch(value: Int): MultiMatchQuery[S]
Sets the
minimumShouldMatch
parameter for this zio.elasticsearch.ElasticQuery.Sets the
minimumShouldMatch
parameter for this zio.elasticsearch.ElasticQuery. TheminimumShouldMatch
value is the number of should clauses returned documents must match. If the zio.elasticsearch.query.BoolQuery includes at least oneshould
clause and nomust
/filter
clauses, the default value is 1. Otherwise, the default value is 0.- value
a number to set
minimumShouldMatch
parameter to- returns
a new instance of the zio.elasticsearch.ElasticQuery with the
minimumShouldMatch
value set.
- Definition Classes
- HasMinimumShouldMatch
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 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]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])