elasticsearch-dataformat icon indicating copy to clipboard operation
elasticsearch-dataformat copied to clipboard

unrecognized parameter: [source]

Open morfie78 opened this issue 4 years ago • 1 comments

Greetings. When I perform a curl: curl -u usernamehere -o /tmp/data.csv -XGET -k "https://elasticiphere:9200/indexnamehere/_doc/_data?format=csv&source=%7B%22query%22%3A%7B%22wildcard%22%3A%7B%22token%22%3A%7B%22value%22%3A%22%2A%22%7D%7D%7D%7D"

It doesn't seem to know what "source" is in the param: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/indexnamehere/_doc/_data] contains unrecognized parameter: [source] -> did you mean [_source]?"}],"type":"illegal_argument_exception","reason":"request [/indexnamehere/_doc/_data] contains unrecognized parameter: [source] -> did you mean [_source]?"},"status":400}

What is the appropriate way to run the utility? Thanks!

morfie78 avatar Feb 25 '21 19:02 morfie78

Hello, I faced the same issue than you, and it was because dataformat plugin wasn't well installed. Check that you installed it correctly.

Regards

emmanuel-h avatar Mar 19 '21 15:03 emmanuel-h