Broken Elasticsearch Data Filtering Example
daurrutia opened this issue · comments
Whilst trying to prove out OPA with Elasticsearch for my team I ran into several issues with the Elasticsearch data filtering example. I personally have not been able to successfully get past step 2 in the README.
Asking for help to ensure the example can run against newer versions of Elasticsearch and also support communicating to containerized Elasticsearch.
Elasticsearch version related error
- #115
- https://stackoverflow.com/questions/62803392/the-mapping-definition-cannot-be-nested-under-a-type-doc-unless-include-type
- https://www.elastic.co/guide/en/elasticsearch/reference/7.16/removal-of-types.html#_schedule_for_removal_of_mapping_types
Containerized Elasticsearch related error
Hi David! 👋 And thanks for reporting this. From what I can see, it's been 4 years since someone actively worked on this, so things have likely changed in Elastic-land since then. Should probably not be too much work to fix if someone wants to pick it up. I'll mark this as a good-first-issue
, hoping someone steps up to the challenge :)
Hey @daurrutia,
Please try building and running my fixed version.
@anderseknert would appreciate your review on my PR 😃