YousefED / ElasticUI

AngularJS directives for Elasticsearch
http://www.elasticui.com
Other
526 stars 135 forks source link

Top level filter parameter deprecated in ES 5 #104

Closed deanthemachine closed 7 years ago

deanthemachine commented 7 years ago

Hi,

First - thank you for putting this all together, it's been a great help as I teach myself the weirdness that is elasticsearch and angular.

The issue I'm seeing is that with version 5 of elasticsearch released last month, none of the single or multiselect widgets work because of the following change: https://www.elastic.co/guide/en/elasticsearch/reference/5.0/breaking_50_search_changes.html#_top_level_literal_filter_literal_parameter

Using the current setup I am getting "bad request" responses when trying to filter. When I take those raw requests and re-run them, but change 'filter' to 'post_filter' everything works fine.

The question is - where in the source do I need to update in order to make this change? I understand that elastic.js is the most likely case, but I just can't figure out where this change needs to happen in order to resolve.

Thanks so much for your work and for your attention!