Marvel Sense GET vs get


(Jakub Kotowski-2) #1

Hi,

Sense seems to send a wrong request with lowercase get. E.g.:

get myindex/doc/_search
{
"query": {
"term": {
"tags": "elastic"
}
}
}

returns all documents even though there is no tag "elastic". The browser
(Chrome) sends the following request:

GET http:
//localhost:9200/myindex/doc/search?{%20%20%22query%22:%20{%20%20%20%20%22term%22:%20{%20%20%20%20%20%20%22tags%22:%20%22elastic%22%20%20%20%20}%20%20}}&=1430910165349

Upper case GET works. Chrome sends a POST request with the query in the
body:

POST http://localhost:9200/myindex/doc/_search

and the response is no documents found as expected.

It's true that Sense marks the lowercase "get" as wrong and suggests
alternatives but the problem is that the lowercase get does work in many
cases (when there's no body) but not in all of them which makes it
confusing. I am not the only one who got stuck on this a bit recently.

Cheers,

Jakub

--
Please update your bookmarks! We moved to https://discuss.elastic.co/

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8cd80da1-9912-4742-a8bf-877e67f3e67e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2