tremk
(trem k)
December 3, 2017, 5:18am
1
Hello,
I would like to ask for GET behavior in elasticsearch.
I am using kibana dev tools
Let say i am creating a new index to elasticsearch
PUT /customers/my_test/0001
{
"name": "For testing purpose"
}
run GET /customers will return index mapping and settings
then i run GET
GET /customers/_mapping/my_test
{
"dynamic": "strict"
}
and it return ack true, and when i run GET /customers
"my_test": { "dynamic": "strict",
Why i am able to update index using GET with body?
dadoonet
(David Pilato)
December 3, 2017, 6:02am
2
It’s “a bug” in Kibana.
When you provide a body to a GET request, Kibana Dev tool changes it to POST.
If you do the same GET with curl you will see that it does not behave the same way.
tremk
(trem k)
December 3, 2017, 11:18am
3
ah make sense then.
should i fill a bug report for it?
dadoonet
(David Pilato)
December 3, 2017, 10:57pm
4
No.
It’s just that you should not GET a mapping with a body.