0
因此,我創建了2個桶,出售和租金,我想計算它們的比例,但我無法這樣做。桶結果算法
{
"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]}}}}
}}
感謝幫助。謝謝!