Describe the issue:
Why opensearchpy doesn’t support knn since knn was added for a long time,but in ES8.x python sdk supports it( Search Class in elasticsearch_dsl/search.py added knn method)
Will the python sdk supported it in the future or the opensearchpy will no longer be supported.
Configuration:
in this url, no new api or method is added to support knn search, it is not as convenient as ES 8.x python sdk which implements knn method
This would be a perfect thing to file a feature request for in github. It may not be too tough of a feature to add if it’s just a matter of query DSL, which is basically json. I’m not intimate with the python libraries, but it might be just as easy to just specify your own query payload if generic post requests can be sent.
ElasticSearch and OpenSearch have been diverged for quite some time. There are likely many features which don’t have complete parity.
Thanks for your replay and advice
We are focusing on ES/OpenSearch service for our customers,currently,vector-based storage and search is cusotomers’ need, so we hope that the usage of ES/Opensearch‘s
python sdk will be the same.
If the opensearchpy team has no plan to implement it, maybe we should implement the methods for our customers