Closed jackyin5918 closed 1 month ago
My index has a nested field, and this nested field has a field of type elastiknn_dense_float_vector.
attrs is a nested field, and attrs has a attr_value_vec field of elastiknn_dense_float_vector type.
I try to create a runtime_mappings during search.
"runtime_mappings": { "attr_7935": { "type": "elastiknn_dense_float_vector", "elastiknn": { "dims": 768, "model": "lsh", "similarity": "cosine", "L": 99, "k": 1 }, "script": { "source": """ return doc['attrs.attr_value_vec'].value[0] """ } } },
and I get below error,
BadRequestError(400, 'search_phase_execution_exception', 'No handler for type [elastiknn_dense_float_vector] declared on runtime field [attr_7935]')
7.17.0.1
Kubernetes
No response
seems like
The runtime section can be any of these data types:
see https://www.elastic.co/guide/en/elasticsearch/reference/7.17/runtime-mapping-fields.html
Support guidelines
Background
My index has a nested field, and this nested field has a field of type elastiknn_dense_float_vector.
attrs is a nested field, and attrs has a attr_value_vec field of elastiknn_dense_float_vector type.
I try to create a runtime_mappings during search.
"runtime_mappings": { "attr_7935": { "type": "elastiknn_dense_float_vector", "elastiknn": { "dims": 768, "model": "lsh", "similarity": "cosine", "L": 99, "k": 1 }, "script": { "source": """ return doc['attrs.attr_value_vec'].value[0] """ } } },
and I get below error,
BadRequestError(400, 'search_phase_execution_exception', 'No handler for type [elastiknn_dense_float_vector] declared on runtime field [attr_7935]')
Bug
and I get below error,
BadRequestError(400, 'search_phase_execution_exception', 'No handler for type [elastiknn_dense_float_vector] declared on runtime field [attr_7935]')
Elastiknn Version
7.17.0.1
Platform
Kubernetes
Steps to reproduce
No response
Additional info
No response