Hi I'm about to make a phonelist with ES.
For user experience I want to make the search a fuzzy one
localhost:9200/phonelist/users/_search
{
"query": {
"match": {
"name": {
"query": "Kuhlmann",
"fuzziness": "AUTO"
}
}
}
}
{
"took": 7,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 4,
"failed": 0
},
"hits": {
"total": 3,
"max_score": 0.47036046,
"hits": [
{
"_index": "phonelist",
"_type": "users",
"_id": "AVVo-gmRDI1e6YuRkpxs",
"_score": 0.47036046,
"_source": {
"name": "Karina Kuhlmann",
"division": "Service Desk",
"age": "29"
}
},
{
"_index": "phonelist",
"_type": "users",
"_id": "AVVo-SC2DI1e6YuRkpxq",
"_score": 0.41156536,
"_source": {
"name": "Katharina Kullmann",
"division": "Team Gehalt",
"age": "43"
}
},
{
"_index": "phonelist",
"_type": "users",
"_id": "AVVo-AkvDI1e6YuRkpxp",
"_score": 0.19178301,
"_source": {
"name": "Patrick Kuhlmann",
"division": "D&A",
"age": "22"
}
}
]
}
}
Why doesn't the query return the two exact matches first?
Well I had an even more confusing result back then, but I can't rebuild it on this pc.
Regards Patrick