Closed paintmeyellow closed 3 years ago
Hi @Nikitos096,
Could you please provide the complete index mapping and the query to reproduce at our end?
Hi @Nikitos096,
Could you please provide the complete index mapping and the query to reproduce at our end?
Yep, here you go:
PUT music
{
"settings": {
"index": {
"knn": true
}
},
"mappings": {
"properties": {
"suggest": {
"type": "completion"
}
}
}
}
PUT music/_doc/1?refresh
{
"suggest" : {
"input": [ "Nevermind", "Nirvana" ],
"weight" : 34
}
}
POST music/_search?pretty
{
"suggest": {
"song-suggest": {
"prefix": "nir",
"completion": {
"field": "suggest"
}
}
}
}
Looks like KNNCodec is missing this implementation. Will dig into this and update the thread soon.
We are considering this as a bug and we would prioritize the fix accordingly.
Why when I am using
"index.knn = true"
I got errorsuggest is not a SuggestField
?Here is the mapping of suggest field:
Here is the problem part of query: