Index document

    Path and HTTP methods

    Request body

    Response body fields

    FieldDescription
    _indexThe name of the index.
    _idThe document’s ID.
    _versionThe document’s version.
    resultThe result of the index operation.
    _shardsDetailed information about the cluster’s shards.
    totalThe total number of shards.
    successfulThe number of shards OpenSearch succssfully added the document to.
    failedThe number of shards OpenSearch failed to added the document to.
    _seq_noThe sequence number assigned when the document was indexed.
    _primary_termThe primary term assigned when the document was indexed.