Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch source uses deprecated field "fields" #1744

Open
cogfor opened this issue May 1, 2017 · 1 comment
Open

Elasticsearch source uses deprecated field "fields" #1744

cogfor opened this issue May 1, 2017 · 1 comment

Comments

@cogfor
Copy link

cogfor commented May 1, 2017

I am trying to use Redash with Elasticsearch 5.1 (on Amazon). Every simple query that involves selecting some fields fails reporting the error message "Deprecated field [fields] used, expected [stored_fields] instead". I assume this is because the Elasticsearch plugin code was not updated for recent versions of Elasticsearch.

Issue Summary

A clean install from source (5ba6af6) does not work with Elasticsearch V5.1 and higher due to deprecated "fields" field in query.

Steps to Reproduce

  1. Every query that uses the "fields" field doesn't work regardless the chosen Elasticsearch index

Technical details:

  • Redash Version: master (5ba6af6)
  • Browser/OS:
  • How did you install Redash: from source, running in docker according to the instructions.
@arikfr
Copy link
Member

arikfr commented May 17, 2017

I'm not 100% familiar with the ElasticSearch query runner code, but from what I can see, you don't have to use the fields field.

The examples include it, but if you use the Elastic Search type data source (and not Kibana), you can pass ElasticSearch's Query DSL JSON, including stored_fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants