I am using Elastic4s. I need to find all index names from an instance of ElasticSearch. What API shall I use?
For Elastic4s version: 6.5.0. You can get all the indices using catIndices api provided by Elastic4s.
Here's an example:
val resp = client.execute {
catIndices
}
You can refer the official doc for more info.
In elastic 1.6.5 you can do,
val resp = client.execute {
clusterState
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With