Hi,
I am trying to use updatebyquery (https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-docs-update-by-query.html), when I try to run
Code:
UpdateByQueryRequestBuilder updateByQuery = UpdateByQueryAction.INSTANCE.newRequestBuilder((ElasticsearchClient) elasticClient.getClient());
Note: elasticClient.getClient() returns RestHighLevelClient
Error:
org.elasticsearch.client.RestHighLevelClient cannot be cast to org.elasticsearch.client.ElasticsearchClient
I am not in favor of using transport client. Please help me.
Thanks in advance.
Thanks,
Rahul