Class SearchTemplateRequestParameters
Request options for SearchTemplate
https://opensearch.org/docs/latest/search-plugins/search-template/
Inheritance
Implements
Inherited Members
Namespace: OpenSearch.Net
Assembly: OpenSearch.Net.dll
Syntax
public class SearchTemplateRequestParameters : RequestParameters<SearchTemplateRequestParameters>, IRequestParameters
Properties
| Edit this page View SourceAllowNoIndices
If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed
indexes. This behavior applies even if the request targets other open indexes. For example, a request targeting foo*,bar* returns
an error if an index starts with foo but no index starts with bar.
Declaration
public bool? AllowNoIndices { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
CcsMinimizeRoundtrips
If true, network round-trips are minimized for cross-cluster search requests.
Declaration
public bool? CcsMinimizeRoundtrips { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
DefaultHttpMethod
Declaration
public override HttpMethod DefaultHttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| HttpMethod |
Overrides
| Edit this page View SourceExpandWildcards
Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard
expressions match hidden data streams. Supports comma-separated values, such as open,hidden. Valid values are: all,
open, closed, hidden, none.
Declaration
public ExpandWildcards? ExpandWildcards { get; set; }
Property Value
| Type | Description |
|---|---|
| ExpandWildcards? |
Explain
If true, the response includes additional details about score computation as part of a hit.
Declaration
public bool? Explain { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
IgnoreThrottled
If true, specified concrete, expanded, or aliased indexes are not included in the response when throttled.
Declaration
public bool? IgnoreThrottled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
IgnoreUnavailable
If false, the request returns an error if it targets a missing or closed index.
Declaration
public bool? IgnoreUnavailable { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
PhaseTook
Indicates whether to return phase-level took time values in the response.
Declaration
public bool? PhaseTook { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Preference
Specifies the node or shard the operation should be performed on. Random by default.
Declaration
public string Preference { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Profile
If true, the query execution is profiled.
Declaration
public bool? Profile { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Routing
A custom value used to route operations to a specific shard.
Declaration
public string[] Routing { get; set; }
Property Value
| Type | Description |
|---|---|
| string[] |
Scroll
Specifies how long a consistent view of the index should be maintained for scrolled search.
Declaration
public TimeSpan Scroll { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
SearchPipeline
Customizable sequence of processing stages applied to search queries.
Declaration
public string SearchPipeline { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SearchType
The type of the search operation.
Declaration
public SearchType? SearchType { get; set; }
Property Value
| Type | Description |
|---|---|
| SearchType? |
SupportsBody
Declaration
public override bool SupportsBody { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceTotalHitsAsInteger
If true, hits.total are rendered as an integer in the response.
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? |