Class DeleteRequestBuilder

    • Method Detail

      • setType

        public DeleteRequestBuilder setType​(java.lang.String type)
        Sets the type of the document to delete.
      • setId

        public DeleteRequestBuilder setId​(java.lang.String id)
        Sets the id of the document to delete.
      • setParent

        public DeleteRequestBuilder setParent​(java.lang.String parent)
        Sets the parent id of this document. Will simply set the routing to this value, as it is only used for routing with delete requests.
      • setRouting

        public DeleteRequestBuilder setRouting​(java.lang.String routing)
        Controls the shard routing of the delete request. Using this value to hash the shard and not the id.
      • setVersion

        public DeleteRequestBuilder setVersion​(long version)
        Sets the version, which will cause the delete operation to only be performed if a matching version exists and no changes happened on the doc since then.
      • setIfSeqNo

        public DeleteRequestBuilder setIfSeqNo​(long seqNo)
        only perform this delete request if the document was last modification was assigned the given sequence number. Must be used in combination with setIfPrimaryTerm(long) If the document last modification was assigned a different sequence number a VersionConflictEngineException will be thrown.
      • setIfPrimaryTerm

        public DeleteRequestBuilder setIfPrimaryTerm​(long term)
        only perform this delete request if the document was last modification was assigned the given primary term. Must be used in combination with setIfSeqNo(long) If the document last modification was assigned a different term a VersionConflictEngineException will be thrown.