这是我的DSL:如何搜索产品与elasticsearch
{
"query": {
"function_score": {
"query": {
"multi_match": {
"query": "testa",
"analyzer":"standard",
"type": "best_fields",
"fields": [ "name^5", "content^1" ]
}
},
"field_value_factor": {
"field": "popular",
"modifier": "log1p",
"factor": 0.1
},
"boost_mode": "sum",
"max_boost": 1.5
}
}
}
当我搜索像“种皮”这样的关键字,结果只包含关键字“种皮”,我应该怎么做才能使结果中包含关键字'testa'和'test'或'tes'? 谢谢。