File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -79,22 +79,16 @@ dependencies {
79
79
TIP: Refer to the xref:getting-started.adoc#dependency-management[Dependency Management] section to add the Spring AI BOM to your build file.
80
80
Refer to the xref:getting-started.adoc#repositories[Repositories] section to add Milestone and/or Snapshot Repositories to your build file.
81
81
82
- To connect to Elasticsearch, create a `RestClient` bean and provide the access details for your instance.
83
-
84
- [source,java]
85
- ----
86
- @Bean
87
- public RestClient restClient() {
88
- return RestClient.builder(HttpHost.create("http://localhost:9200"))
89
- .build();
90
- }
91
- ----
92
-
93
- Next, you can provide the `ElasticsearchVectorStore` configuration via Spring Boot's `application.yml`:
82
+ To connect to and configure Elasticsearch, you need to provide access details for your instance.
83
+ A simple configuration can either be provided via Spring Boot's `application.yml`
94
84
95
85
[source,yaml]
96
86
----
97
87
spring:
88
+ elasticsearch:
89
+ uris: <elasticsearch instance URIs>
90
+ username: <elasticsearch username>
91
+ password: <elasticsearch password>
98
92
ai:
99
93
vectorstore:
100
94
elasticsearch:
You can’t perform that action at this time.
0 commit comments