Class SearchRequestParameters
Request options for Search
https://opensearch.org/docs/latest/search-plugins/async/index/#rest-api
Implements
Inherited Members
Namespace: OpenSearch .Net.Specification.AsynchronousSearchApi
Assembly: OpenSearch.Net.dll
Syntax
public class SearchRequestParameters : RequestParameters<SearchRequestParameters>, IRequestParameters
Properties
| Edit this page View SourceDefaultHttpMethod
Declaration
public override HttpMethod DefaultHttpMethod { get; }
Property Value
Type | Description |
---|---|
Http |
Overrides
| Edit this page View SourceIndex
The name of the index to be searched. Can be an individual name, a comma-separated list of indexes, or a wildcard expression of index names.
Declaration
public string Index { get; set; }
Property Value
Type | Description |
---|---|
string |
KeepAlive
The amount of time that the result is saved in the cluster. For example, 2d
means that the results are stored in the cluster for 48
hours. The saved search results are deleted after this period or if the search is canceled. Note that this includes the query execution
time. If the query exceeds this amount of time, the process cancels this query automatically.
Declaration
public string KeepAlive { get; set; }
Property Value
Type | Description |
---|---|
string |
KeepOnCompletion
Whether to save the results in the cluster after the search is complete. You can examine the stored results at a later time.
Declaration
public bool? KeepOnCompletion { get; set; }
Property Value
Type | Description |
---|---|
bool? |
SupportsBody
Declaration
public override bool SupportsBody { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceWaitForCompletionTimeout
The amount of time to wait for the results. You can poll the remaining results based on an ID. The maximum value is 300 seconds. Default
is 1s
.
Declaration
public string WaitForCompletionTimeout { get; set; }
Property Value
Type | Description |
---|---|
string |