elasticsearch-dataformat
elasticsearch-dataformat copied to clipboard
unrecognized parameter: [source]
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!
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