elasticsearch6 DeleteIndexResponse
The DeleteIndexResponse is a class in Elasticsearch6 that represents the response of a delete index operation. It contains information about the success or failure of the operation.
Some of the important methods and attributes of the DeleteIndexResponse class are:
- isAcknowledged(): Returns a boolean value indicating whether the delete operation was acknowledged by the cluster.
Example usage:
DeleteIndexResponse response = client.indices().delete(new DeleteIndexRequest("my_index"));
boolean acknowledged = response.isAcknowledged();
In the above example, we create a DeleteIndexRequest to delete an index named "my_index". We then call the isAcknowledged() method on the DeleteIndexResponse object to check if the delete operation was acknowledged by the cluster. The returned boolean value will be true if the operation was successful, and false otherwise
原文地址: http://www.cveoy.top/t/topic/iJ3Y 著作权归作者所有。请勿转载和采集!