问题描述
使用下面的查询应用过滤器后,我得到了所有页面的页面加载时间-
{
"query": {
"bool": {
"must": {
"match_all": {}
},"filter": [
{
"term": {
...
}
},{
"term": {
...
}
},]
}
},"aggs": {
"metric_load_time": {
"percentiles": {
"field": "metric.pageLoad"
}
},"metric_load_time_ranks": {
"percentile_ranks": {
"field": "metric.pageLoad","values": [ 200 ] <- Here I want to take the value from one (or more) of the results.
}
}
}
}
根据Elastic的文档,我还需要percentile_rank作为输出结果之一,我需要在输入中提供值。还有其他方法可以获取输出中单个/多个文档的百分位数吗?我总是可以再打一个电话,只是为了获得percentile_rank,但我正努力避免多次打电话。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)