core icon indicating copy to clipboard operation
core copied to clipboard

ESContentResource does not accept a POST

Open wezell opened this issue 11 years ago • 3 comments

Which means for it to work, you need to do a GET which leaves the whole query string on the access logs.

wezell avatar Feb 18 '15 15:02 wezell

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"
                }
            }
        }
    }
}'

wezell avatar Feb 18 '15 17:02 wezell

Fixed, Tested on nightly build 2015-02-23 // Postgres // FF

bryanboza avatar Feb 24 '15 15:02 bryanboza

Added TC http://qa.dotcms.com/index.php?/cases/view/59171

shaydotcms avatar Jun 17 '15 20:06 shaydotcms