codelibs / elasticsearch-dataformat

Excel/CSV/BulkJSON downloads on Elasticsearch.
Apache License 2.0
144 stars 36 forks source link

example of using query dsl in source #13

Open enningb opened 9 years ago

enningb commented 9 years ago

is it possible to give a simple example in the documentation of how to use the Query DSL in the source variable?

marevol commented 9 years ago
curl -XGET "localhost:9200/movielens/_data?format=csv&source=%7B%22query%22%3A%7B%22match_all%22%3A%7B%7D%7D%7D"
ghost commented 9 years ago

Could you provide and example using the fl (field) option? Thanks.

marevol commented 9 years ago

fl is a request parameter.

chess4ever commented 7 years ago

For me it's not working. this is the output: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"No endpoint or operation is available at [_data]"}],"type":"illegal_argument_exception","reason":"No endpoint or operation is available at [_data]"},"status":400}

marevol commented 7 years ago

I think the plugin installation is failed.

chess4ever commented 7 years ago

It's a problem with the version, I have elasticsearch 5.3.0 installed which is not compatible.

marevol commented 7 years ago

Released dataformat plugin for elasticsearch 5.3.