Getting custom calculated value in script field of Elasticsearch -
i want multiplication of 2 values in script field in elastic search shown in image. how this?
i using below aggregation code
{ "aggs": { "mention": { "terms": { "size": 20, "field": "username" }, "aggs": { "mention_hits": { "top_hits": { "sort": [ { "published_date": { "order": "desc" } } ], "_source": { "include": [ "klout" ] }, "size": 1 } }, "user_ranking": { "max": { "script": " 123 " } } } } } }
Comments
Post a Comment