In new to Elastic Search, and I am following the online documentation.
When introducing the Search API (and in the following pages), all the query with a body use the HTTP GET method; shouldn't it use the POST method?
Thanks
In new to Elastic Search, and I am following the online documentation.
When introducing the Search API (and in the following pages), all the query with a body use the HTTP GET method; shouldn't it use the POST method?
Thanks
HTTP RFC supports GET with body. So this is correct.
We also support POST in such a case for some clients (like javascript) who does not support GET with body.
OK. I'm using bash+curl and it didn't work, I had to change from GET to POST.
Thanks
bash+curl does work on my end.
You are right, Elasticsearch works with GET+body.
The strage thing is that curl on my machine do send a GET request with body, but ES does not reply. I managed to test it sending a hand-made request using Firefox developer tools (I had to use Wireshark to check if there was the body).
Thanks
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.