Fixing ElasticsearchVectorStoreIT test failures

Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>
This commit is contained in:
Soby Chacko
2025-02-06 14:10:02 -05:00
parent 3ae9503c3e
commit 1fee0827e4

View File

@@ -219,6 +219,9 @@ public class ElasticsearchVectorStore extends AbstractObservationVectorStore imp
for (String id : idList) {
bulkRequestBuilder.operations(op -> op.delete(idx -> idx.index(this.options.getIndexName()).id(id)));
}
if (bulkRequest(bulkRequestBuilder.build()).errors()) {
throw new IllegalStateException("Delete operation failed");
}
}
@Override