Skip to content

Commit a36a987

Browse files
committed
Fix OpenSearch vector store test failures
Signed-off-by: Soby Chacko <[email protected]>
1 parent 1fee082 commit a36a987

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vector-stores/spring-ai-opensearch-store/src/main/java/org/springframework/ai/vectorstore/opensearch/OpenSearchVectorStore.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ public void doDelete(List<String> idList) {
222222
for (String id : idList) {
223223
bulkRequestBuilder.operations(op -> op.delete(idx -> idx.index(this.index).id(id)));
224224
}
225+
if (bulkRequest(bulkRequestBuilder.build()).errors()) {
226+
throw new IllegalStateException("Delete operation failed");
227+
}
225228
}
226229

227230
private BulkResponse bulkRequest(BulkRequest bulkRequest) {

0 commit comments

Comments
 (0)