-
Notifications
You must be signed in to change notification settings - Fork 283
Description
Java API client version
8.19.+
Java version
17
Elasticsearch Version
8.19.+
Problem description
SimulateIndexTemplateRequest in the Java client appears to require the indexTemplate property in 8.19.+ versions.
When using the Java client in 8.19.+, the following throws a MissingRequiredPropertyException unless indexTemplate is set.
SimulateIndexTemplateResponse response = client.indices().simulateIndexTemplate(b -> b.name(indexName));
This worked correctly in 8.19.0, so it appears to be a regression in the 8.19.+ client.
In 8.19.+, the above fails with co.elastic.clients.util.MissingRequiredPropertyException: Missing required property 'SimulateIndexTemplateRequest.indexTemplate'
8.19.0 → works
8.19.+ → fails with MissingRequiredPropertyException
Server version: Elasticsearch 8.19.x
Expected behavior:
The request should succeed and simulate template resolution for the provided index name in 8.19.+, similar to how it used to succeed in 8.19.0
Is there a planned fix in a future client release?