Class TypeExistsDescriptor
Descriptor for TypeExists
https://opensearch.org/docs/latest/opensearch/rest-api/index-apis/exists/
Inheritance
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class TypeExistsDescriptor : RequestDescriptorBase<TypeExistsDescriptor, TypeExistsRequestParameters, ITypeExistsRequest>, IDescriptor, ITypeExistsRequest, IRequest<TypeExistsRequestParameters>, IRequest
Remarks
Deprecated as of OpenSearch 2.0
Constructors
| Edit this page View SourceTypeExistsDescriptor()
Used for serialization purposes, making sure we have a parameterless constructor
Declaration
protected TypeExistsDescriptor()
TypeExistsDescriptor(Indices, Names)
/{index}/_mapping/{type}
Declaration
public TypeExistsDescriptor(Indices index, Names type)
Parameters
Type | Name | Description |
---|---|---|
Indices | index | this parameter is required |
Names | type | this parameter is required |
Methods
| Edit this page View SourceAllIndices()
A shortcut into calling Index(Indices.All)
Declaration
public TypeExistsDescriptor AllIndices()
Returns
Type | Description |
---|---|
TypeExistsDescriptor |
AllowNoIndices(bool?)
Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes _all
string or when no indices have been specified)
Declaration
public TypeExistsDescriptor AllowNoIndices(bool? allownoindices = true)
Parameters
Type | Name | Description |
---|---|---|
bool? | allownoindices |
Returns
Type | Description |
---|---|
TypeExistsDescriptor |
ExpandWildcards(ExpandWildcards?)
Whether to expand wildcard expression to concrete indices that are open, closed or both.
Declaration
public TypeExistsDescriptor ExpandWildcards(ExpandWildcards? expandwildcards)
Parameters
Type | Name | Description |
---|---|---|
ExpandWildcards? | expandwildcards |
Returns
Type | Description |
---|---|
TypeExistsDescriptor |
IgnoreUnavailable(bool?)
Whether specified concrete indices should be ignored when unavailable (missing or closed)
Declaration
public TypeExistsDescriptor IgnoreUnavailable(bool? ignoreunavailable = true)
Parameters
Type | Name | Description |
---|---|---|
bool? | ignoreunavailable |
Returns
Type | Description |
---|---|
TypeExistsDescriptor |
Index(Indices)
A comma-separated list of index names; use _all
to check the types across all indices
Declaration
public TypeExistsDescriptor Index(Indices index)
Parameters
Type | Name | Description |
---|---|---|
Indices | index |
Returns
Type | Description |
---|---|
TypeExistsDescriptor |
Index<TOther>()
a shortcut into calling Index(typeof(TOther))
Declaration
public TypeExistsDescriptor Index<TOther>() where TOther : class
Returns
Type | Description |
---|---|
TypeExistsDescriptor |
Type Parameters
Name | Description |
---|---|
TOther |
Local(bool?)
Return local information, do not retrieve the state from cluster_manager node (default: false)
Declaration
public TypeExistsDescriptor Local(bool? local = true)
Parameters
Type | Name | Description |
---|---|---|
bool? | local |
Returns
Type | Description |
---|---|
TypeExistsDescriptor |