From b615b63581eed74285a747e8bed3dc998dd34745 Mon Sep 17 00:00:00 2001 From: PSriVarshan Date: Sun, 23 Mar 2025 18:37:25 +0530 Subject: [PATCH] Fix: Added missing return statement in Couchbase Cluster bean example Signed-off-by: PSriVarshan --- .../antora/modules/ROOT/pages/api/vectordbs/couchbase.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/couchbase.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/couchbase.adoc index f6fbb34fdc5..87cb0bb9e6b 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/couchbase.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/couchbase.adoc @@ -215,9 +215,9 @@ Read the link:https://docs.couchbase.com/java-sdk/current/hello-world/start-usin ---- @Bean public Cluster cluster() { - Cluster cluster = Cluster.connect("couchbase://localhost", - "username", "password"); + return Cluster.connect("couchbase://localhost", "username", "password"); } + ---- and then create the `CouchbaseSearchVectorStore` bean using the builder pattern: