Skip to content

Commit 1fee082

Browse files
committed
Fixing ElasticsearchVectorStoreIT test failures
Signed-off-by: Soby Chacko <[email protected]>
1 parent 3ae9503 commit 1fee082

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vector-stores/spring-ai-elasticsearch-store/src/main/java/org/springframework/ai/vectorstore/elasticsearch/ElasticsearchVectorStore.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ public void doDelete(List<String> idList) {
219219
for (String id : idList) {
220220
bulkRequestBuilder.operations(op -> op.delete(idx -> idx.index(this.options.getIndexName()).id(id)));
221221
}
222+
if (bulkRequest(bulkRequestBuilder.build()).errors()) {
223+
throw new IllegalStateException("Delete operation failed");
224+
}
222225
}
223226

224227
@Override

0 commit comments

Comments
 (0)