From d8ef6efa9cf28a8d83aacc47a29ee2ab05fcdf99 Mon Sep 17 00:00:00 2001 From: "P.Sri Varshan" <114944059+PSriVarshan@users.noreply.github.com> Date: Mon, 24 Mar 2025 17:13:24 +0530 Subject: [PATCH] Fix: Added missing return statement in Couchbase Cluster bean example (#2557) 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 f6fbb34fd..87cb0bb9e 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: