MultiMatchQuery
Attributes
- Graph
-
- Supertypes
Members list
Value members
Abstract methods
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.
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:
- 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
Attributes
- Returns
-
an instance of the zio.elasticsearch.query.ElasticQuery enriched with the
type
parameter.
Inherited and Abstract methods
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)