How to check if an index and mapping exists in elasticsearch v6.0.1

How to check if an index already exists before creating an index in elasticsearch. I could not find any documentation on this. Please help.

Thank you for quick response. I am looking for Rest High Level Client java api. could you please let me know the documentation link.

It's not supported yet in the HLClient but it's trivial to implement. See

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.