Search Results for

    Show / Hide Table of Contents

    Class GetFieldMappingResponse

    Inheritance
    object
    ResponseBase
    DictionaryResponseBase<IndexName, TypeFieldMappings>
    GetFieldMappingResponse
    Implements
    IDictionaryResponse<IndexName, TypeFieldMappings>
    IResponse
    IOpenSearchResponse
    Inherited Members
    DictionaryResponseBase<IndexName, TypeFieldMappings>.Self
    ResponseBase.ApiCall
    ResponseBase.DebugInformation
    ResponseBase.OriginalException
    ResponseBase.ServerError
    ResponseBase.DebugIsValid(StringBuilder)
    ResponseBase.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class GetFieldMappingResponse : DictionaryResponseBase<IndexName, TypeFieldMappings>, IDictionaryResponse<IndexName, TypeFieldMappings>, IResponse, IOpenSearchResponse

    Properties

    | Edit this page View Source

    Indices

    Declaration
    [IgnoreDataMember]
    public IReadOnlyDictionary<IndexName, TypeFieldMappings> Indices { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<IndexName, TypeFieldMappings>
    | Edit this page View Source

    IsValid

    Checks if a response is functionally valid or not. This is a OpenSearch.Client abstraction to have a single property to check whether there was something wrong with a request.

    For instance, an OpenSearch bulk response always returns 200 and individual bulk items may fail, IsValid will be false in that case.

    You can also configure the client to always throw an OpenSearchClientException using ThrowExceptions if the response is not valid

    Declaration
    public override bool IsValid { get; }
    Property Value
    Type Description
    bool
    Overrides
    ResponseBase.IsValid

    Methods

    | Edit this page View Source

    GetMapping(IndexName, Field)

    Declaration
    public IFieldMapping GetMapping(IndexName index, Field property)
    Parameters
    Type Name Description
    IndexName index
    Field property
    Returns
    Type Description
    IFieldMapping
    | Edit this page View Source

    MappingFor<T>(Field)

    Declaration
    public IFieldMapping MappingFor<T>(Field property)
    Parameters
    Type Name Description
    Field property
    Returns
    Type Description
    IFieldMapping
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    MappingFor<T>(Field, IndexName)

    Declaration
    public IFieldMapping MappingFor<T>(Field property, IndexName index)
    Parameters
    Type Name Description
    Field property
    IndexName index
    Returns
    Type Description
    IFieldMapping
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    MappingFor<T>(Expression<Func<T, object>>, IndexName)

    Declaration
    public IFieldMapping MappingFor<T>(Expression<Func<T, object>> objectPath, IndexName index = null) where T : class
    Parameters
    Type Name Description
    Expression<Func<T, object>> objectPath
    IndexName index
    Returns
    Type Description
    IFieldMapping
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    MappingFor<T, TValue>(Expression<Func<T, TValue>>, IndexName)

    Declaration
    public IFieldMapping MappingFor<T, TValue>(Expression<Func<T, TValue>> objectPath, IndexName index = null) where T : class
    Parameters
    Type Name Description
    Expression<Func<T, TValue>> objectPath
    IndexName index
    Returns
    Type Description
    IFieldMapping
    Type Parameters
    Name Description
    T
    TValue

    Implements

    IDictionaryResponse<TKey, TValue>
    IResponse
    IOpenSearchResponse

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Properties
      • Indices
      • IsValid
    • Methods
      • GetMapping(IndexName, Field)
      • MappingFor<T>(Field)
      • MappingFor<T>(Field, IndexName)
      • MappingFor<T>(Expression<Func<T, object>>, IndexName)
      • MappingFor<T, TValue>(Expression<Func<T, TValue>>, IndexName)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX