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.