例如,我有一个嵌套文档,如:
doc = {
"id": 1,
"content": [
{
"txt": apple,
"time": 0,
},
{
"txt": banana,
"time": 1,
},
{
"txt": water,
"time": 2,
},
{
"txt": do not match this block,
"time": 3,
},
]
}
当我搜索“苹果、香蕉或水”时,我只从最大内击分数中得到分数,但我想从内击分数的总和中得到分数。
也许我应该用聚合?
1条答案
按热度按时间xxhby3vn1#
添加“score\u mode”:“sum”在搜索查询中