elasticsearchで文字列置換した結果でgroup byしたい

aggregation で script を使えばできた。

https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html#use-scripts-in-an-agg

script では Java のクラスが使えるようで Matcher で文字列置換できる。

コメントを残す