Class MultiSearchRequest
Request for MultiSearch
https://opensearch.org/docs/latest/api-reference/multi-search/
Inheritance
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class MultiSearchRequest : PlainRequestBase<MultiSearchRequestParameters>, IMultiSearchRequest, IRequest<MultiSearchRequestParameters>, IRequest
Constructors
| Edit this page View SourceMultiSearchRequest()
/_msearch
Declaration
public MultiSearchRequest()
MultiSearchRequest(Indices)
/{index}/_msearch
Declaration
public MultiSearchRequest(Indices index)
Parameters
Type | Name | Description |
---|---|---|
Indices | index | Optional, accepts null |
Properties
| Edit this page View SourceCcsMinimizeRoundtrips
If true
, network round-trips between the coordinating node and remote clusters 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 multi search API can execute.
Declaration
public long? MaxConcurrentSearches { get; set; }
Property Value
Type | Description |
---|---|
long? |
MaxConcurrentShardRequests
Maximum number of concurrent shard requests that each sub-search request executes per node.
Declaration
public long? MaxConcurrentShardRequests { get; set; }
Property Value
Type | Description |
---|---|
long? |
Operations
Declaration
public IDictionary<string, ISearchRequest> Operations { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, ISearchRequest> |
PreFilterShardSize
Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method i.e., if date filters are mandatory to match but the shard bounds and the query are disjoint.
Declaration
public long? PreFilterShardSize { get; set; }
Property Value
Type | Description |
---|---|
long? |
SearchType
Indicates whether global term and document frequencies should be used when scoring returned documents.
Declaration
public SearchType? SearchType { get; set; }
Property Value
Type | Description |
---|---|
SearchType? |
Self
Declaration
protected IMultiSearchRequest Self { get; }
Property Value
Type | Description |
---|---|
IMultiSearchRequest |
TotalHitsAsInteger
If true
, hits.total
are returned as an integer in the response. Defaults to false, which returns an object.
Declaration
public bool? TotalHitsAsInteger { get; set; }
Property Value
Type | Description |
---|---|
bool? |
TypedKeys
Specifies whether aggregation and suggester names should be prefixed by their respective types in the response.
Declaration
public bool? TypedKeys { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
| Edit this page View SourceRequestDefaults(MultiSearchRequestParameters)
Allows a request implementation to set certain request parameter defaults, use sparingly!
Declaration
protected override sealed void RequestDefaults(MultiSearchRequestParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
MultiSearchRequestParameters | parameters |