Search Results for

    Show / Hide Table of Contents

    Class CreateIndexDescriptor

    Descriptor for Create

    https://opensearch.org/docs/latest/api-reference/index-apis/create-index/

    Inheritance
    object
    RequestBase<CreateIndexRequestParameters>
    RequestDescriptorBase<CreateIndexDescriptor, CreateIndexRequestParameters, ICreateIndexRequest>
    CreateIndexDescriptor
    Implements
    IDescriptor
    ICreateIndexRequest
    IIndexState
    IRequest<CreateIndexRequestParameters>
    IRequest
    Inherited Members
    RequestDescriptorBase<CreateIndexDescriptor, CreateIndexRequestParameters, ICreateIndexRequest>.Self
    RequestDescriptorBase<CreateIndexDescriptor, CreateIndexRequestParameters, ICreateIndexRequest>.Assign<TValue>(TValue, Action<ICreateIndexRequest, TValue>)
    RequestDescriptorBase<CreateIndexDescriptor, CreateIndexRequestParameters, ICreateIndexRequest>.Qs(string, object)
    RequestDescriptorBase<CreateIndexDescriptor, CreateIndexRequestParameters, ICreateIndexRequest>.RequestConfiguration(Func<RequestConfigurationDescriptor, IRequestConfiguration>)
    RequestDescriptorBase<CreateIndexDescriptor, CreateIndexRequestParameters, ICreateIndexRequest>.ErrorTrace(bool?)
    RequestDescriptorBase<CreateIndexDescriptor, CreateIndexRequestParameters, ICreateIndexRequest>.FilterPath(params string[])
    RequestDescriptorBase<CreateIndexDescriptor, CreateIndexRequestParameters, ICreateIndexRequest>.FilterPath(IEnumerable<string>)
    RequestDescriptorBase<CreateIndexDescriptor, CreateIndexRequestParameters, ICreateIndexRequest>.Human(bool?)
    RequestDescriptorBase<CreateIndexDescriptor, CreateIndexRequestParameters, ICreateIndexRequest>.Pretty(bool?)
    RequestDescriptorBase<CreateIndexDescriptor, CreateIndexRequestParameters, ICreateIndexRequest>.SourceQueryString(string)
    RequestBase<CreateIndexRequestParameters>.HttpMethod
    RequestBase<CreateIndexRequestParameters>.RequestState
    RequestBase<CreateIndexRequestParameters>.ContentType
    RequestBase<CreateIndexRequestParameters>.ResolveUrl(RouteValues, IConnectionSettingsValues)
    RequestBase<CreateIndexRequestParameters>.RequestDefaults(CreateIndexRequestParameters)
    RequestBase<CreateIndexRequestParameters>.Q<TOut>(string)
    RequestBase<CreateIndexRequestParameters>.Q(string, object)
    RequestBase<CreateIndexRequestParameters>.SetAcceptHeader(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class CreateIndexDescriptor : RequestDescriptorBase<CreateIndexDescriptor, CreateIndexRequestParameters, ICreateIndexRequest>, IDescriptor, ICreateIndexRequest, IIndexState, IRequest<CreateIndexRequestParameters>, IRequest

    Constructors

    | Edit this page View Source

    CreateIndexDescriptor()

    Used for serialization purposes, making sure we have a parameterless constructor

    Declaration
    protected CreateIndexDescriptor()
    | Edit this page View Source

    CreateIndexDescriptor(IndexName)

    /{index}

    Declaration
    public CreateIndexDescriptor(IndexName index)
    Parameters
    Type Name Description
    IndexName index

    this parameter is required

    Methods

    | Edit this page View Source

    Aliases(Func<AliasesDescriptor, IPromise<IAliases>>)

    Declaration
    public CreateIndexDescriptor Aliases(Func<AliasesDescriptor, IPromise<IAliases>> selector)
    Parameters
    Type Name Description
    Func<AliasesDescriptor, IPromise<IAliases>> selector
    Returns
    Type Description
    CreateIndexDescriptor
    | Edit this page View Source

    ClusterManagerTimeout(Time)

    Operation timeout for connection to cluster-manager node.

    Declaration
    public CreateIndexDescriptor ClusterManagerTimeout(Time clustermanagertimeout)
    Parameters
    Type Name Description
    Time clustermanagertimeout
    Returns
    Type Description
    CreateIndexDescriptor
    Remarks

    Supported by OpenSearch servers of version 2.0.0 or greater.

    | Edit this page View Source

    IncludeTypeName(bool?)

    Whether a type should be expected in the body of the mappings.

    Declaration
    public CreateIndexDescriptor IncludeTypeName(bool? includetypename = true)
    Parameters
    Type Name Description
    bool? includetypename
    Returns
    Type Description
    CreateIndexDescriptor
    Remarks

    Deprecated as of OpenSearch 2.0

    | Edit this page View Source

    Index(IndexName)

    Name of the index you wish to create.

    Declaration
    public CreateIndexDescriptor Index(IndexName index)
    Parameters
    Type Name Description
    IndexName index
    Returns
    Type Description
    CreateIndexDescriptor
    | Edit this page View Source

    Index<TOther>()

    a shortcut into calling Index(typeof(TOther))

    Declaration
    public CreateIndexDescriptor Index<TOther>() where TOther : class
    Returns
    Type Description
    CreateIndexDescriptor
    Type Parameters
    Name Description
    TOther
    | Edit this page View Source

    InitializeUsing(IIndexState)

    Declaration
    public CreateIndexDescriptor InitializeUsing(IIndexState indexSettings)
    Parameters
    Type Name Description
    IIndexState indexSettings
    Returns
    Type Description
    CreateIndexDescriptor
    | Edit this page View Source

    Map(Func<TypeMappingDescriptor<object>, ITypeMapping>)

    Declaration
    public CreateIndexDescriptor Map(Func<TypeMappingDescriptor<object>, ITypeMapping> selector)
    Parameters
    Type Name Description
    Func<TypeMappingDescriptor<object>, ITypeMapping> selector
    Returns
    Type Description
    CreateIndexDescriptor
    | Edit this page View Source

    Map<T>(Func<TypeMappingDescriptor<T>, ITypeMapping>)

    Declaration
    public CreateIndexDescriptor Map<T>(Func<TypeMappingDescriptor<T>, ITypeMapping> selector) where T : class
    Parameters
    Type Name Description
    Func<TypeMappingDescriptor<T>, ITypeMapping> selector
    Returns
    Type Description
    CreateIndexDescriptor
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    Mappings(Func<MappingsDescriptor, ITypeMapping>)

    Declaration
    [Obsolete("Mappings is no longer a dictionary, please use the simplified Map() method on this descriptor instead")]
    public CreateIndexDescriptor Mappings(Func<MappingsDescriptor, ITypeMapping> selector)
    Parameters
    Type Name Description
    Func<MappingsDescriptor, ITypeMapping> selector
    Returns
    Type Description
    CreateIndexDescriptor
    | Edit this page View Source

    MasterTimeout(Time)

    Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.

    Declaration
    [Obsolete("Deprecated as of: 2.0.0, reason: To promote inclusive language, use `cluster_manager_timeout` instead.")]
    public CreateIndexDescriptor MasterTimeout(Time mastertimeout)
    Parameters
    Type Name Description
    Time mastertimeout
    Returns
    Type Description
    CreateIndexDescriptor
    | Edit this page View Source

    Settings(Func<IndexSettingsDescriptor, IPromise<IIndexSettings>>)

    Declaration
    public CreateIndexDescriptor Settings(Func<IndexSettingsDescriptor, IPromise<IIndexSettings>> selector)
    Parameters
    Type Name Description
    Func<IndexSettingsDescriptor, IPromise<IIndexSettings>> selector
    Returns
    Type Description
    CreateIndexDescriptor
    | Edit this page View Source

    Timeout(Time)

    Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

    Declaration
    public CreateIndexDescriptor Timeout(Time timeout)
    Parameters
    Type Name Description
    Time timeout
    Returns
    Type Description
    CreateIndexDescriptor
    | Edit this page View Source

    WaitForActiveShards(string)

    The number of shard copies that must be active before proceeding with the operation. Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1).

    Declaration
    public CreateIndexDescriptor WaitForActiveShards(string waitforactiveshards)
    Parameters
    Type Name Description
    string waitforactiveshards
    Returns
    Type Description
    CreateIndexDescriptor

    Implements

    IDescriptor
    ICreateIndexRequest
    IIndexState
    IRequest<TParameters>
    IRequest

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • CreateIndexDescriptor()
      • CreateIndexDescriptor(IndexName)
    • Methods
      • Aliases(Func<AliasesDescriptor, IPromise<IAliases>>)
      • ClusterManagerTimeout(Time)
      • IncludeTypeName(bool?)
      • Index(IndexName)
      • Index<TOther>()
      • InitializeUsing(IIndexState)
      • Map(Func<TypeMappingDescriptor<object>, ITypeMapping>)
      • Map<T>(Func<TypeMappingDescriptor<T>, ITypeMapping>)
      • Mappings(Func<MappingsDescriptor, ITypeMapping>)
      • MasterTimeout(Time)
      • Settings(Func<IndexSettingsDescriptor, IPromise<IIndexSettings>>)
      • Timeout(Time)
      • WaitForActiveShards(string)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX