Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
慢顶点击聚合 - Fatal编程技术网

慢顶点击聚合

慢顶点击聚合,
Warning: implode(): Invalid arguments passed in /data/phpspider/zhask/webroot/tpl/detail.html on line 45
,,我有一个非常基本的top_hits聚合,但是如果结果集中有太多的点击,它的性能会很差(与返回一组大约一百万次点击的单一点击的搜索相比,会多出一秒钟左右)。这是问题所在 { "aggs": { "hits": { "aggs": { "children": { "top_hits": { "_source": "preview", "size": 3 }

我有一个非常基本的top_hits聚合,但是如果结果集中有太多的点击,它的性能会很差(与返回一组大约一百万次点击的单一点击的搜索相比,会多出一秒钟左右)。这是问题所在

{
  "aggs": {
    "hits": {
      "aggs": {
        "children": {
          "top_hits": {
            "_source": "preview",
            "size": 3
          }
        },
        "top_score": {
          "max": {
            "script": "_score"
          }
        }
      },
      "terms": {
        "field": "rollupId",
        "size": 10,
        "order": {
          "top_score": "desc"
        }
      }
    }
  },
  "query": {
    "multi_match": {
      "query": "states",
      "fields": [
        "title^3",
        "nameText^2.5",
        "placeText^2",
        "allText"
      ],
      "type": "cross_fields",
      "operator": "and"
    }
  },
  "from": 0,
  "size": 0
}

我只想要10个结果,每个结果只有3个点击率。为什么这么慢?

嗨,罗伯特,我在这里也面临着类似的情况。你能找到解决办法吗?