Hi All,
While migrating from Elastic HighLevelRestClient to bnew Java API Client, we are facing issues in handling error scenarios in BulkResponse.
Earlier in HLRC, in BulkItemResponse, there was Failure type field, which contained RestStatus which is an enum of all the HTTP status codes. In Java API Client, we have BulkResponseItem, which has status(int) and result(string) fields, but there is no such mapping of all the rest statuses as earlier.
How should that be handled?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.