Interface ICombinedFieldsQuery
The combined_fields query supports searching multiple text fields as if their contents had been indexed into one combined field. The query analyzes the provided text before performing a search, and it scores documents using a term-centric approach that treats the matched fields as a single field.
All queried fields must have the same search analyzer. Only text fields are supported.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface ICombinedFieldsQuery : IQuery
Properties
| Edit this page View SourceFields
The list of fields to search. Field wildcard patterns are allowed. Only text fields are supported,
and they must all share the same search analyzer.
Declaration
[DataMember(Name = "fields")]
Fields Fields { get; set; }
Property Value
| Type | Description |
|---|---|
| Fields |
MinimumShouldMatch
A value controlling how many "should" clauses in the resulting boolean query should match. It can be an absolute value, a percentage or a combination of both.
Declaration
[DataMember(Name = "minimum_should_match")]
MinimumShouldMatch MinimumShouldMatch { get; set; }
Property Value
| Type | Description |
|---|---|
| MinimumShouldMatch |
Operator
The operator used to combine the analyzed terms of the query value. The default operator is Or.
Declaration
[DataMember(Name = "operator")]
Operator? Operator { get; set; }
Property Value
| Type | Description |
|---|---|
| Operator? |
Query
The text to search for in the provided Fields. The combined_fields query analyzes the provided text before performing a search.
Declaration
[DataMember(Name = "query")]
string Query { get; set; }
Property Value
| Type | Description |
|---|---|
| string |