Fvh突出显示比统一突出显示需要更长的时间

时间:2018-11-21 08:11:18

标签: elasticsearch

我正在尝试不同的突出显示方法。正如我所看到的,“ fvh”是统一的十倍以上。 查询是:

{"from" : 0, "size" : 1,"_source": {"includes":["TITLE"]
},  "query": {
    "bool": {"should": [{
          "query_string": {
            "query":"\"pratik\"",
            "fields":[],
            "boost":"50"
                    }
            }, {
          "multi_match": {
            "query":"pratik",
            "type":"phrase",
            "boost":"10",
            "slop":"2",
            "fields":[]
}},{

          "multi_match": {
           "query":"pratik",
                     "fields":[]
}},{

          "multi_match": {
           "query":"pratik",
           "fuzziness":"AUTO",
                     "fields":[]
}}],"minimum_should_match":1,"filter": [ { "terms":  { "ID.keyword" : ["a12d"]} } ]}},  "highlight": {
        "type" : "fvh",
        "fields": {
            "*": {}
        }
    }} 

fvh大约需要140938毫秒,而统一则需要1283毫秒。如何减少fvh花费的时间?统一已被弃用吗?

0 个答案:

没有答案
相关问题