Class MultiSearchTemplateRequest
Request for MultiSearchTemplate
https://opensearch.org/docs/latest/search-plugins/search-template/
Inheritance
MultiSearchTemplateRequest
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class MultiSearchTemplateRequest : PlainRequestBase<MultiSearchTemplateRequestParameters>, IMultiSearchTemplateRequest, IRequest<MultiSearchTemplateRequestParameters>, IRequest
Constructors
| Edit this page View SourceMultiSearchTemplateRequest()
/_msearch/template
Declaration
public MultiSearchTemplateRequest()
MultiSearchTemplateRequest(Indices)
/{index}/_msearch/template
Declaration
public MultiSearchTemplateRequest(Indices index)
Parameters
Type | Name | Description |
---|---|---|
Indices | index | Optional, accepts null |
Properties
| Edit this page View SourceCcsMinimizeRoundtrips
If true
, network round-trips are minimized for cross-cluster search requests.
Declaration
public bool? CcsMinimizeRoundtrips { get; set; }
Property Value
Type | Description |
---|---|
bool? |
MaxConcurrentSearches
Maximum number of concurrent searches the API can run.
Declaration
public long? MaxConcurrentSearches { get; set; }
Property Value
Type | Description |
---|---|
long? |
Operations
Declaration
public IDictionary<string, ISearchTemplateRequest> Operations { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, ISearchTemplateRequest> |
SearchType
The type of the search operation. Available options: query_then_fetch
, dfs_query_then_fetch
.
Declaration
public SearchType? SearchType { get; set; }
Property Value
Type | Description |
---|---|
SearchType? |
Self
Declaration
protected IMultiSearchTemplateRequest Self { get; }
Property Value
Type | Description |
---|---|
IMultiSearchTemplateRequest |
TotalHitsAsInteger
If true
, the response returns hits.total
as an integer. If false
, it returns hits.total
as an object.
Declaration
public bool? TotalHitsAsInteger { get; set; }
Property Value
Type | Description |
---|---|
bool? |
TypedKeys
If true
, the response prefixes aggregation and suggester names with their respective types.
Declaration
public bool? TypedKeys { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
| Edit this page View SourceRequestDefaults(MultiSearchTemplateRequestParameters)
Allows a request implementation to set certain request parameter defaults, use sparingly!
Declaration
protected override sealed void RequestDefaults(MultiSearchTemplateRequestParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
MultiSearchTemplateRequestParameters | parameters |