phillro / node-elasticsearch-client

A client written in node for elastic search
364 stars 90 forks source link

why search does a POST? #92

Closed santiago closed 11 years ago

santiago commented 11 years ago

https://github.com/phillro/node-elasticsearch-client/blob/master/lib/elasticsearchclient/calls/core.js#L121

phillro commented 11 years ago

Both get and post are supported by the API: http://www.elasticsearch.org/guide/reference/api/search/

I choose post as GET requests with a body often have unexpected behavior: http://stackoverflow.com/questions/978061/http-get-with-request-body

On Thu, Jun 20, 2013 at 5:50 PM, Santiago Gaviria notifications@github.comwrote:

https://github.com/phillro/node-elasticsearch-client/blob/master/lib/elasticsearchclient/calls/core.js#L121

— Reply to this email directly or view it on GitHubhttps://github.com/phillro/node-elasticsearch-client/issues/92 .