Here is the aggregation:
"aggs" : {
"bucketA" : {
"terms" : { "field" : "field1" }
}
Here is the results:
"bucketA": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "value1",
"doc_count": 667
},
{
"key": "value2",
"doc_count": 328
},
{
"key": "value3",
"doc_count": 1
}
]
}
I want to have a file (I imagine store in Elasticsearch somewhere?) that contains the replacement values:
"value1" : "replacement1"
"value2" : "replacement2"
"value3" : "replacement3"
Is there a way to specify this in the "aggregation", or do I have to capture the result and do the substitution subsequently?