如下
query_str_seg = {"multi_match" : {
"query": "Thank you",
"fields": fields_seg,
"type": "cross_fields",
"tie_breaker": tie_breaker,
"cutoff_frequency": 0.002,
"minimum_should_match": "50%"}}
效果很好
但是我想要的是“谢谢^ 1.3 you ^ 0.8”,当我将查询更改为上述格式时,ES返回NULL(它将thank ^ 1.3识别为一个术语,而不是术语和权重...)
如何在查询搜索中获得术语权重?