Class ClearCacheRequestParameters
Request options for ClearCache
https://opensearch.org/docs/latest/api-reference/index-apis/clear-index-cache/
Implements
Inherited Members
Namespace: OpenSearch.Net.Specification.IndicesApi
Assembly: OpenSearch.Net.dll
Syntax
public class ClearCacheRequestParameters : RequestParameters<ClearCacheRequestParameters>, 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 indices.
This behavior applies even if the request targets other open indices.
Declaration
public bool? AllowNoIndices { 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? |
Fielddata
If true
, clears the fields cache. Use the fields
parameter to clear the cache of specific fields only.
Declaration
public bool? Fielddata { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Fields
Comma-separated list of field names used to limit the fielddata
parameter.
Declaration
public string[] Fields { get; set; }
Property Value
Type | Description |
---|---|
string[] |
File
If true, clears the unused entries from the file cache on nodes with the Search role.
Declaration
public bool? File { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Remarks
Supported by OpenSearch servers of version 2.8.0 or greater.
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? |
Index
Comma-separated list of indices; use _all
or empty string to perform the operation on all indices.
Declaration
public string[] Index { get; set; }
Property Value
Type | Description |
---|---|
string[] |
Query
If true
, clears the query cache.
Declaration
public bool? Query { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Request
If true
, clears the request cache.
Declaration
public bool? Request { get; set; }
Property Value
Type | Description |
---|---|
bool? |
SupportsBody
Declaration
public override bool SupportsBody { get; }
Property Value
Type | Description |
---|---|
bool |