spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Include index name in OpenSearchVectorStore for similarity search

Open inpink opened this issue 1 year ago • 0 comments
trafficstars

Bug description When performing a similarity search with SearchRequest, the index name is not included. This leads to a permission error when using roles restricted to specific indices in Opensearch.

Contents

  • Fixed the issue where the index name was missing in similaritySearch. The index was included for adding and deleting documents but not for search. I added it to ensure correct behavior.

Test

  • Added tests to verify documents are correctly added and retrieved.
  • Tested this with different indices using separate OpenSearchVectorStore instances.

Issue Link close #885

inpink avatar Sep 29 '24 07:09 inpink