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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -