搜索带有空格的名称(文本),给我带来了问题,我的映射类似于
"{"user":{"properties":{"name":{"type":"string"}}}}"
理想情况下,它应该返回什么并对结果进行如下排序
1) Bring on top names that exact match the search term (highest score)
2) Names that starts with the search term (high score)
3) Names that contains the exact search term as substring (medium score)
4) Names that contains any of the search term token (lowest score)
示例用于弹性搜索中的以下名称
Maaz Tariq
Ahmed Maaz Tariq
Maaz Sheeba
Maaz Bin Tariq
Sana Tariq
Maaz Tariq Ahmed
搜索“Maaz Tariq”,结果应按以下顺序
Maaz Tariq (highest score)
Maaz Tariq Ahmed (high score)
Ahmed Maaz Tariq (medium score)
Maaz Bin Tariq (lowest score)
Maaz Sheeba (lowest score)
Sana Tariq (lowest score)
谁能指出我如何以及使用哪些分析仪?以及如何对名称的搜索结果进行排名?