elasticsearch - Arithmetic on bucket results -
so creating 2 buckets, sale , rent , i'd calculate ratio i'm unable so.
{ "size":"0", "query":{ "filtered":{ "filter":{ "term":{"area":"ireland"} } } }, "aggs":{ "sale":{"filter":{"term":{"type":"sale"}}, "aggs":{"price":{"percentiles":{"field":"price", "percents":[75]}}}}, "rent":{"filter":{"term":{"type":"rent"}}, "aggs":{"price":{"percentiles":{"field":"price", "percents":[75]}}}} }}
appreciate help. thanks!
this not possible, @ moment, elasticsearch.
but it's being actively implemented , tracked in this github issue.
Comments
Post a Comment