Skip to content

Commit

Permalink
removed useless dependency, note to docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
l-trotta committed Jun 17, 2024
1 parent dfabcc7 commit 674ca66
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ dependencies {
implementation 'org.springframework.ai:spring-ai-elasticsearch-store-spring-boot-starter'
}
----
NOTE: For spring-boot versions pre 3.3.0 it's necessary to explicitly add the elasticsearch-java dependency with version > 8.13.3, otherwise the older version used will be incompatible with the queries performed:
```
<dependency>
<groupId>co.elastic.clients</groupId>
<artifactId>elasticsearch-java</artifactId>
<version>8.13.3</version>
</dependency>
```

TIP: Refer to the xref:getting-started.adoc#dependency-management[Dependency Management] section to add the Spring AI BOM to your build file.

Expand Down Expand Up @@ -194,7 +202,7 @@ is converted into the proprietary Elasticsearch filter format:

== Manual Configuration

Instead of using the Spring Boot auto-configuration, you can manually configure the Elasticsearch vector store. \For this you need to add the `spring-ai-elasticsearch-store` to your project:
Instead of using the Spring Boot auto-configuration, you can manually configure the Elasticsearch vector store. For this you need to add the `spring-ai-elasticsearch-store` to your project:

[source,xml]
----
Expand Down
8 changes: 0 additions & 8 deletions spring-ai-spring-boot-autoconfigure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,6 @@
<optional>true</optional>
</dependency>

<!-- Elastic Search vector store -->
<dependency>
<groupId>co.elastic.clients</groupId>
<artifactId>elasticsearch-java</artifactId>
<version>${elasticsearch-java.version}</version>
<optional>true</optional>
</dependency>

<!-- test dependencies -->

<dependency>
Expand Down

0 comments on commit 674ca66

Please sign in to comment.