Hi @kimchy
I was waiting for the moment I will need your help and it's today .
I have tags, with this mapping:
"tag": {
"_all": {
"index_analyzer": "nGram_analyzer",
"search_analyzer": "whitespace_analyzer"
},
"properties": {
"name": {
"type": "string",
"index_analyzer": "nGram_analyzer",
"search_analyzer": "whitespace_analyzer"
},
}
}
and now. I'm searching in this way:
{
"sort":[
"_score"
],
"query":{
"bool":{
"must":[
{
"match":{
"name":{
"operator":"and",
"query":"blue"
}
}
}
]
}
},
"size":20
}
What I have in result? When searching 20 items I have 20 other words containing blue, for example bluesea, bluesky, but not blue. What could it be that blue hasn't higher score than words containing blue?