我正在尝试不同的突出显示方法。正如我所看到的,“ 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花费的时间?统一已被弃用吗?