Class CombinedFieldsQuery
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 class CombinedFieldsQuery : QueryBase, ICombinedFieldsQuery, IQuery
Properties
| Edit this page View SourceConditionless
Declaration
protected override bool Conditionless { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
| 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
public 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
public 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
public 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
public string Query { get; set; }
Property Value
| Type | Description |
|---|---|
| string |