When I'm calling elastic search service in firefox RESTClient it seems that body is not sent and it returns all documents in elastic search:
But when I copy curl command created by RESTClient itself and execute it in bash shell the response is just OK and it returns requested document.
HTTP/1.1 200 OK
Warning: 299 Elasticsearch-7.8.0-757314695644ea9a1dc2fecd26d1a43856725e65 "[types removal] Specifying types in search requests is deprecated."
content-type: application/json; charset=UTF-8
content-length: 446
{"took":11,"timed_out":false,"_shards":{"total":1,"successful":1,"skipped":0,"failed":0},"hits":{"total":{"value":2,"relation":"eq"},"max_score":0.6931471,"hits":[{"_index":"myindex","_type":"employee","_id":"yNPLjnMBdY381Mciyqch","_score":0.6931471,"_source":{
"name": "ehsan",
"value": 5
}},{"_index":"myindex","_type":"employee","_id":"ydPLjnMBdY381Mci96ee","_score":0.6931471,"_source":{
"name": "ehsan",
"value": 10
}}]}}
What's the problem here?