opensearch-project / k-NN

🆕 Find the k-nearest neighbors (k-NN) for your vector data
https://opensearch.org/docs/latest/search-plugins/knn/index/
Apache License 2.0
156 stars 123 forks source link

Fixing the dimension for the vector when using Lucene field in ModelFieldMapper #1980

Closed navneet1v closed 2 months ago

navneet1v commented 3 months ago

Description

Fixing the dimension for the vector when using Lucene field in ModelFieldMapper. To ensure that bug doesn't happen again I have added UTs for the same.

This bug is not in production as the feature is not launched. Hence I am also not adding any entry in changelog.

Issue

https://github.com/opensearch-project/k-NN/issues/1949

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.