I am trying elstic search query and all my search results is showing same _score. For that i am not getting the appropriate result.
GET my_index/_search
{
"from": 0,
"size": 10,
"query": {
"bool": {
"must": [
{
"match": {
"Id": "xxxxx"
}
}
],
"filter": [
{
"nested": {
"path": "names",
"query": {
"bool": {
"should": [
{
"match": {
"names.name": {
"query": "Jon wick"
//"fuzziness": "AUTO"
}
}
}
]
}
}
}
}
]
}
},
"_source": [
"partyId",
"isSearchable"
]
}
Result:
I am getting sult like below :{
"_index": "my_index",
"_id": "1",
"_score": 0.023666047,
"_source": {}
},
{
"_index": "my_index",
"_id": "2",
"_score": 0.023666047,
"_source": {}
},