Search Results for

    Show / Hide Table of Contents

    Class ResponseBase

    Inheritance
    object
    ResponseBase
    AcknowledgedResponseBase
    AddAgenticMemoryResponse
    AnalyzeResponse
    BulkResponse
    BulkStreamResponse
    CancelTasksResponse
    CatResponse<TCatRecord>
    ChunkModelResponse
    CleanupRepositoryResponse
    ClearScrollResponse
    ClusterAllocationExplainResponse
    ClusterGetSettingsResponse
    ClusterHealthResponse
    ClusterPendingTasksResponse
    ClusterPutSettingsResponse
    ClusterRerouteResponse
    CountResponse
    CreateConnectorResponse
    CreateControllerResponse
    CreateMemoryContainerResponse
    CreateMemoryContainerSessionResponse
    CreateMemoryResponse
    CreateMessageResponse
    CreateModelMetaResponse
    CreatePitResponse
    DeleteAgenticMemoryQueryResponse
    DeleteAliasResponse
    DeleteAllPitsResponse
    DeleteByQueryResponse
    DeleteMemoryResponse
    DeletePitResponse
    DeleteSearchPipelineResponse
    DeleteVotingConfigExclusionsResponse
    DeployModelResponse
    DictionaryResponseBase<TKey, TValue>
    DynamicResponseBase
    ExecuteAgentResponse
    ExecuteAlgorithmResponse
    ExecutePainlessScriptResponse<TResult>
    ExecuteToolResponse
    ExistsResponse
    ExperimentsSearchResponse
    ExplainResponse<TDocument>
    FieldCapabilitiesResponse
    GetAgentResponse
    GetAgenticMemoryResponse
    GetAllMemoriesResponse
    GetAllMessagesResponse
    GetAllPitsResponse
    GetAllToolsResponse
    GetComponentTemplateResponse
    GetComposableIndexTemplateResponse
    GetConnectorResponse
    GetControllerResponse
    GetExperimentsResponse
    GetJudgmentsResponse
    GetMLTaskResponse
    GetMemoryContainerResponse
    GetMemoryResponse
    GetMessageResponse
    GetMessageTracesResponse
    GetModelGroupResponse
    GetModelResponse
    GetNodeStatsResponse
    GetProfileModelsResponse
    GetProfileResponse
    GetProfileTasksResponse
    GetQuerySetsResponse
    GetRepositoryResponse
    GetResponse<TDocument>
    GetScheduledExperimentsResponse
    GetScriptResponse
    GetSearchConfigurationsResponse
    GetSearchPipelineResponse
    GetSearchRelevanceStatsResponse
    GetSnapshotResponse
    GetStatsResponse
    GetTaskResponse
    GetToolResponse
    GrokProcessorPatternsResponse
    IndicesStatsResponse
    JudgmentsSearchResponse
    ListDanglingIndicesResponse
    ListTasksResponse
    LoadModelResponse
    MultiGetResponse
    MultiSearchResponse
    MultiTermVectorsResponse
    NodesHotThreadsResponse
    NodesResponseBase
    PingResponse
    PostQuerySetsResponse
    PostScheduledExperimentsResponse
    PostVotingConfigExclusionsResponse
    PredictModelResponse
    PredictResponse
    PutAliasResponse
    PutExperimentsResponse
    PutJudgmentsResponse
    PutQuerySetsResponse
    PutSearchConfigurationsResponse
    PutSearchPipelineResponse
    QuerySetsSearchResponse
    RegisterAgentsResponse
    RegisterModelGroupResponse
    RegisterModelMetaResponse
    RegisterModelResponse
    ReindexOnServerResponse
    ReindexRethrottleResponse
    RenderSearchTemplateResponse
    ResolveIndexResponse
    RestoreResponse
    RootNodeInfoResponse
    SearchAgenticMemoryResponse
    SearchAgentsResponse
    SearchConfigurationsSearchResponse
    SearchConnectorsResponse
    SearchMemoryContainerResponse
    SearchMemoryResponse
    SearchMessageResponse
    SearchModelGroupResponse
    SearchModelsResponse
    SearchResponse<TDocument>
    SearchShardsResponse
    SearchTasksResponse
    ShardsOperationResponseBase
    SimulatePipelineResponse
    SnapshotResponse
    SnapshotStatusResponse
    SourceResponse<TDocument>
    TermVectorsResponse
    TrainPredictResponse
    TrainResponse
    UndeployModelResponse
    UnloadModelResponse
    UpdateAgenticMemoryResponse
    UpdateByQueryResponse
    UpdateConnectorResponse
    UpdateControllerResponse
    UpdateMemoryContainerResponse
    UpdateMemoryResponse
    UpdateMessageResponse
    UpdateModelGroupResponse
    UpdateModelResponse
    UploadChunkResponse
    UploadModelResponse
    ValidateQueryResponse
    VerifyRepositoryResponse
    WriteResponseBase
    Implements
    IResponse
    IOpenSearchResponse
    Inherited Members
    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 abstract class ResponseBase : IResponse, IOpenSearchResponse

    Properties

    | Edit this page View Source

    ApiCall

    Returns useful information about the request(s) that were part of this API call.

    Declaration
    public virtual IApiCallDetails ApiCall { get; }
    Property Value
    Type Description
    IApiCallDetails
    | Edit this page View Source

    DebugInformation

    A lazily computed, human readable string representation of what happened during a request for both successful and failed requests. Useful whilst developing or to log when IsValid is false on responses.

    Declaration
    public string DebugInformation { get; }
    Property Value
    Type Description
    string
    | 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 virtual bool IsValid { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    OriginalException

    If the request resulted in an exception on the client side this will hold the exception that was thrown.

    This property is a shortcut to ApiCall's OriginalException and is possibly set when IsValid is false depending on the cause of the error

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

    Declaration
    public Exception OriginalException { get; }
    Property Value
    Type Description
    Exception
    | Edit this page View Source

    ServerError

    If the response results in an error on OpenSearch's side an

    error

    element will be returned, this is mapped to ServerError in OpenSearch.Client.

    Possibly set when IsValid is false, depending on the cause of the error

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

    Declaration
    public ServerError ServerError { get; }
    Property Value
    Type Description
    ServerError

    Methods

    | Edit this page View Source

    DebugIsValid(StringBuilder)

    Subclasses can override this to provide more information on why a call is not valid.

    Declaration
    protected virtual void DebugIsValid(StringBuilder sb)
    Parameters
    Type Name Description
    StringBuilder sb
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Implements

    IResponse
    IOpenSearchResponse

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX