MultiMatchQuery

zio.elasticsearch.query.MultiMatchQuery
sealed trait MultiMatchQuery[S] extends ElasticQuery[S]

Attributes

Graph
Supertypes
trait ElasticQuery[S]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def fields[S1 <: S : Schema](field: Field[S1, String], fields: Field[S1, String]*): MultiMatchQuery[S1]

Sets the type-safe fields parameter for this zio.elasticsearch.query.ElasticQuery. The fields parameter is array of type-safe fields that will be searched.

Sets the type-safe fields parameter for this zio.elasticsearch.query.ElasticQuery. The fields parameter is array of type-safe fields that will be searched.

Value parameters

fields

a array of type-safe fields to set fields parameter to

Attributes

Returns

an instance of the zio.elasticsearch.query.ElasticQuery enriched with the type-safe fields parameter.

def fields(field: String, fields: String*): MultiMatchQuery[S]

Sets the fields parameter for this zio.elasticsearch.query.ElasticQuery. The fields parameter is array of fields that will be searched.

Sets the fields parameter for this zio.elasticsearch.query.ElasticQuery. The fields parameter is array of fields that will be searched.

Value parameters

fields

a array of fields to set fields parameter to

Attributes

Returns

an instance of the zio.elasticsearch.query.ElasticQuery enriched with the fields parameter.

Sets the type parameter for this zio.elasticsearch.query.ElasticQuery. The type parameter decides the way zio.elasticsearch.query.ElasticQuery is executed internally.

Sets the type parameter for this zio.elasticsearch.query.ElasticQuery. The type parameter decides the way zio.elasticsearch.query.ElasticQuery is executed internally.

Value parameters

matchingType

the zio.elasticsearch.query.MultiMatchType value of 'type' parameter, possible values are:

Attributes

Returns

an instance of the zio.elasticsearch.query.ElasticQuery enriched with the type parameter.

Inherited and Abstract methods

def boost(value: Double): MultiMatchQuery[S]

Sets the boost parameter for this zio.elasticsearch.query.ElasticQuery. The boost 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 default boost value is 1.

Sets the boost parameter for this zio.elasticsearch.query.ElasticQuery. The boost 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 default boost value is 1.

Value parameters

value

a non-negative real number to set boost parameter to

Attributes

Returns

a new instance of the zio.elasticsearch.query.ElasticQuery with the boost value set.

Inherited from:
HasBoost (hidden)

Sets the minimumShouldMatch parameter for this zio.elasticsearch.ElasticQuery. The minimumShouldMatch value is the number of should clauses returned documents must match. If the zio.elasticsearch.query.BoolQuery includes at least one should clause and no must/filter clauses, the default value is 1. Otherwise, the default value is 0.

Sets the minimumShouldMatch parameter for this zio.elasticsearch.ElasticQuery. The minimumShouldMatch value is the number of should clauses returned documents must match. If the zio.elasticsearch.query.BoolQuery includes at least one should clause and no must/filter clauses, the default value is 1. Otherwise, the default value is 0.

Value parameters

value

a number to set minimumShouldMatch parameter to

Attributes

Returns

a new instance of the zio.elasticsearch.ElasticQuery with the minimumShouldMatch value set.

Inherited from:
HasMinimumShouldMatch (hidden)