The primary way of interacting with Elasticsearch is using the REST API over HTTP. If Kibana or Sense is not an option for you, you can use any of the popular HTTP clients, such as cURL or Postman. Curl is a command line-based client available on most operating systems. Postman is an UI-based HTTP client available for major operating systems. You can get postman from the following link:
To execute the queries in this book using other HTTP clients, you have to specify the Elasticsearch server address (such as http://127.0.0.1:9200) in front of the API endpoint to execute the query. Let's take an example query found in this book:
POST es-index/_search
{
"query": {
"match_all": {}
}
}
To execute the preceding query in cURL, you should add the curl command and the -d flag and wrap the query in...