Failing to connect my java class with Elastic Search Using API

Sir,
How can i use the given query in my java class with sql format
POST _sql?format=txt
{
"query": "select name, from index_name"
}

How to write its equivalent query in my java class

I think it's the same question as in How to convert and use an API query into equivalent SQL query in a java class

Please be patient in waiting for responses to your question and refrain from pinging multiple times asking for a response or opening multiple topics for the same question. This is a community forum, it may take time for someone to reply to your question. For more information please refer to the Community Code of Conduct specifically the section "Be patient". Also, please refrain from pinging folks directly, this is a forum and anyone that participates might be able to assist you.

If you are in need of a service with an SLA that covers response times for questions then you may want to consider talking to us about a subscription.

It's fine to answer on your own thread after 2 or 3 days (not including weekends) if you don't have an answer.

Apology Sir,
I will take care of it from next time.

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