我有6-7个索引,每当我在所有索引中搜索时,我都要为搜索中的索引设置优先级。
假设我有5个索引名为
我想确保我给我的搜索结果首先来自用户,而不是专家或管理员。
我使用弹性搜索版本6.64
我找不到任何关于搜索优先级的好文档,弹性搜索中提到的优先级主要与索引的恢复有关。
发布于 2020-10-30 07:02:38
是的,根据ES版本语法使用助推是可能的。
POST index1,index2,.index6/_search
{
"indices_boost" : [
{ "index1" : 5 }, --> index1, will get higher score
{ "index2" : 4 }
]
}
https://stackoverflow.com/questions/64603853
复制相似问题