...
Change mapping for “regions” field, getting rid of “nested” type and using a plain “keyword” field (concatenating region_type and region) and then to use “regex” in aggregations.
...
Data changes
New mapping for regions:
Code Block |
---|
"regions": {"type": "keyword"}, "region_type": {"type": "keyword"}, |
...