elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.79k stars 24.69k forks source link

how to query sparse vector with version 8.11? #114475

Closed sheng49 closed 2 hours ago

sheng49 commented 2 hours ago

I have elasticsearch with version 8.11,

I used query as follow: "query":{ "sparse_vector": { "field": 'summary_sparse_vec', "query_vector": query_vector } } however, I got error: {"error":{"root_cause":[{"type":"parsing_exception","reason":"unknown query [sparse_vector]","line":1,"col":29}],"type":"parsing_exception","reason":"unknown query [sparse_vector]","line":1,"col":29,"caused_by":{"type":"named_object_not_found_exception","reason":"[1:29] unknown field [sparse_vector]"}},"status":400}

so, how to query sparse vector with version 8.11?

AI-IshanBhatt commented 2 hours ago

Thanks very much for your interest in Elasticsearch. This appears to be a user question, and we'd like to direct these kinds of things to the forums. If you can stopby there, we'd appreciate it. This allows us to use GitHub for verified bug reports, feature requests, and pull requests. There's an active community in the forums that should be able to help get an answer to your question. As such, I hope you don't mind that I close this.