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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -