etsy / 411

An Alert Management Web Application
https://demo.fouroneone.io
MIT License
971 stars 112 forks source link

elasticsearch 6 Load more is not working #205

Open tmanninger opened 5 years ago

tmanninger commented 5 years ago

Hi,

i am using elasticsearch 6.

If i open "Alerts" in the 411 gui and click on the Button "Load 100" to load more alerts, the query fails, 411 executes the following query: (state:(0 OR 1)) AND assignee:3 AND assignee_type:0 AND escalated:0 AND search_id:50 AND state:1

escalated is a boolean, and only supports false or true as value since elasticsearch 6: See: https://github.com/elastic/elasticsearch/pull/22200

The query must changed to: (state:(0 OR 1)) AND assignee:3 AND assignee_type:false AND escalated:0 AND search_id:50 AND state:1