Skip to content

Commit a572009

Browse files
committed
Fix Elasticsearch IT failing tests
Signed-off-by: Christian Tzolov <[email protected]>
1 parent 3cf3db1 commit a572009

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

auto-configurations/vector-stores/spring-ai-autoconfigure-vector-store-elasticsearch/src/test/java/org/springframework/ai/vectorstore/elasticsearch/autoconfigure/ElasticsearchVectorStoreAutoConfigurationIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ public void propertiesTest() {
135135
SpringAiRetryAutoConfiguration.class, OpenAiEmbeddingAutoConfiguration.class))
136136
.withPropertyValues("spring.elasticsearch.uris=" + elasticsearchContainer.getHttpHostAddress(),
137137
"spring.ai.openai.api-key=" + System.getenv("OPENAI_API_KEY"),
138+
"spring.ai.vectorstore.elasticsearch.initializeSchema=true",
138139
"spring.ai.vectorstore.elasticsearch.index-name=example",
139140
"spring.ai.vectorstore.elasticsearch.dimensions=1024",
140141
"spring.ai.vectorstore.elasticsearch.dense-vector-indexing=true",

0 commit comments

Comments
 (0)