core
core copied to clipboard
ESContentResource does not accept a POST
Which means for it to work, you need to do a GET which leaves the whole query string on the access logs.
Here are working examples for our documentation:
jquery: https://gist.github.com/wezell/df0e5b10e6edb8bdec2a#file-javascript-example
curl:
curl -H "Content-Type: application/json" -XPOST http://localhost:8080/api/es/search -d '{
"query": {
"bool": {
"must": {
"term": {
"_all": "gas"
}
}
}
}
}'
Fixed, Tested on nightly build 2015-02-23 // Postgres // FF
Added TC http://qa.dotcms.com/index.php?/cases/view/59171