Hi All,
I have implemented edge_ngram.
When i am searching "Santanu Prasad"
I am getting 3 doc, "santanu", "santanu prasad" and "prasad"
For the below query i am getting : "Prasad" with highest score then "Santanu Prasad" then "Santanu" .
Could you please tell me why this behaviour
I am trying to search name with below query :
{
"size": "1000",
"from": 0,
"sort": [
{
"_score": {
"order": "desc"
}
}
],
"query": {
"bool": {
"must": {
"nested": {
"path": "names",
"query": {
"bool": {
"must": [
{
"match": {
"names.name": {
"query": "Santanu Prasad"
}
}
}
]
}
}
}
},
"filter": [
{
"nested": {
"path": "names",
"query": {
"bool": {
"must": [
{
"match": {
"names.name": {
"query": "Santanu Prasad"
}
}
}
]
}
},
"inner_hits": {
"_source": [
"names"
]
}
}
}
]
}
},
"_source": [
"partyId",
"isSearchable"
]
}