How elasticsearch create rest api? Please explain?

i am new to use elasticsearch rest api.

Yes, Elasticsearch provides REST API which allows user to manage and query indexed data. These APIs contains Document API, Search API, Indices API, cat API and Cluster API. You can use curl command to post request to Elasticsearch, for example:
PUT twitter/_doc/1
{
"user" : "kimchy",
"post_date" : "2009-11-15T14:12:12",
"message" : "trying out Elasticsearch"
}
Moreover, Elastic provides diffrent clients for different languages: https://www.elastic.co/guide/en/elasticsearch/client/index.html

Can you Please explain elasticsearch rest api as developer needed?

Points:

  1. How es make rest api in code, is it using jax-rs?
  2. Please explain with one example?

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