YousefED / ElasticUI

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

Replace deprecated Request.filter() with Request.post_filter() #109

Open jedihe opened 7 years ago

jedihe commented 7 years ago

Very hackish for now, just missing proper upstreaming of the update to elastic.js and doing a proper build of elasticui (both unminified and minified).

jenswitzel commented 5 years ago

Does it still work this way? We've got serious problems with ES5.x although i included your changes.

jedihe commented 5 years ago

@jviele this patch is currently being used in a project that queries an Elasticsearch 5.x instance (5.1.x). Search queries work just fine. Make sure to check the request payload and verify it includes the top-level "post_filter" entry.

jenswitzel commented 5 years ago

@jedihe thanks a lot. i really appreciate your help. After adding the changes from filter to post_filter it works :-) Had another problem during migration from ES2 to ES5 and access rules. Therefore i'll open another request...

jenswitzel commented 5 years ago

Sorry to tell you: Its just working with a migrated ES2_to_ES5 index. When i try to catch a new ES5 built index, elasticUI shows nothing but a console error message:

"Quellübergreifende (Cross-Origin) Anfrage blockiert: Die Gleiche-Quelle-Regel verbietet das Lesen der externen Ressource auf https://someserver/someindex/_search?size=10&from=0. (Grund: CORS-Kopfzeile 'Access-Control-Allow-Origin' fehlt)." although we think we added Cross-Origin rules :-(

Why does it work with old ES Version 2 built index? Why not with freshly built ES Version 5? Strange...