acroquest / micrometer-kibana-dashboard

Kibana Dashboard for Spring Boot + Micrometer.
Apache License 2.0
52 stars 26 forks source link

Modify kibana-index.ndjson for Elastic 7.12.0 #8

Open petrov9 opened 3 years ago

petrov9 commented 3 years ago

Prerequisite: In elastic 7.12.0 changed the search way, now it uses text and keyword types.

In order to solve elastic error: "Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [name] in order to load field data by uninverting the inverted index. Note that this can use significant memory",

Scripts for scripted fields are changed from doc['name'] to doc['name.keyword']