Java API client version
7.17.1
Java version
17
Elasticsearch Version
7.16.2
Problem description
I am trying to migrate this working code from the high-level rest client:
GetIndexResponse response = hlrClient.indices().get(new GetIndexRequest("someprefix-*"), RequestOptions.DEFAULT);
To this:
GetIndexResponse response = javaApiClient.indices().get(req -> req.index("someprefix-*"));
Im confused by the meaning of the error message -- why does this property need to be set?