ElasticUI icon indicating copy to clipboard operation
ElasticUI copied to clipboard

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

Open jedihe opened this issue 8 years ago • 4 comments
trafficstars

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).

jedihe avatar Apr 28 '17 06:04 jedihe

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

jenswitzel avatar Mar 27 '19 15:03 jenswitzel

@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.

jedihe avatar Mar 27 '19 15:03 jedihe

@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 avatar Apr 02 '19 08:04 jenswitzel

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...

jenswitzel avatar Apr 03 '19 14:04 jenswitzel