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

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -