The first step in to create the data source and provide the Elasticsearch cluster URL and optionally provide the basic auth
In the query editor view, select the Elasticsearch data source created above. On the left column, click on the refresh icon to refresh the schemas (indexes). The schemas are expandible and show the schema details.
You can then proceed to the query editor and run the search query. The query uses JSON as passed to the Elasticsearch search API