Add spaceType as a top level parameter while creating vector field. With this change a user can change the spaceType for the vector field without defining the method parameter in the mapping. With this change Disk based vector search OOB experience is improved.
Things to be added:
Tests will be added in followup PRs
How testing is done:
I have performed manual testing by running following create index request.
[X] Commits are signed per the DCO using --signoff.
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.
Description
Add spaceType as a top level parameter while creating vector field. With this change a user can change the spaceType for the vector field without defining the
method
parameter in the mapping. With this change Disk based vector search OOB experience is improved.Things to be added:
Tests will be added in followup PRs
How testing is done:
I have performed manual testing by running following create index request.
Success
Success and hits the legacy method and use the innerproduct space type
Related Issues
https://github.com/opensearch-project/k-NN/issues/1949
Check List
--signoff
.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.