Elasticsearch-java api for Slices doesn't have a way to specify 'auto' for reindexing?

buitcj
Thu, 10 Jul 2025 15:51:01 +0000
Elasticsearch

It seems that Slices.java in v8 and v9 of the elasticsearch-java, there is no way to specify slices = 'auto'?

The REST API seems to to say 'auto' can be used (Reindex documents | Elasticsearch API documentation)

But the java api doesn't seem to have it.

Can someone confirm? If it indeed does not have a java binding, is there a workaround?

4 posts - 2 participants