Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

No handler for type [knn_vector] #510

Open
benjtlv opened this issue Nov 15, 2021 · 0 comments
Open

No handler for type [knn_vector] #510

benjtlv opened this issue Nov 15, 2021 · 0 comments

Comments

@benjtlv
Copy link

benjtlv commented Nov 15, 2021

Version: 1.13.2

I installed open distro, installed it on windows using zip, ran .\bin\elasticsearch.bat, I verified the installation.
I try to create an index in Postman using the following query:

PUT: http://localhost:9200/my-knn-index-1
body:
{ "mappings": { "properties": { "my_vector1": { "type": "knn_vector", "dimension": 2 }, "my_vector2": { "type": "knn_vector", "dimension": 4 } } } }

Got:

{ "error": { "root_cause": [ { "type": "mapper_parsing_exception", "reason": "No handler for type [knn_vector] declared on field [my_vector2]" } ], "type": "mapper_parsing_exception", "reason": "Failed to parse mapping [_doc]: No handler for type [knn_vector] declared on field [my_vector2]", "caused_by": { "type": "mapper_parsing_exception", "reason": "No handler for type [knn_vector] declared on field [my_vector2]" } }, "status": 400 }

Kind of strange.

Any input would be appreciated

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant