diff --git a/langstream-agents/langstream-vector-agents/src/main/java/ai/langstream/agents/vector/couchbase/CouchbaseAssetsManagerProvider.java b/langstream-agents/langstream-vector-agents/src/main/java/ai/langstream/agents/vector/couchbase/CouchbaseAssetsManagerProvider.java index 53a4d5282..ec0449f5f 100644 --- a/langstream-agents/langstream-vector-agents/src/main/java/ai/langstream/agents/vector/couchbase/CouchbaseAssetsManagerProvider.java +++ b/langstream-agents/langstream-vector-agents/src/main/java/ai/langstream/agents/vector/couchbase/CouchbaseAssetsManagerProvider.java @@ -282,12 +282,15 @@ private void createVectorSearchIndex( System.out.println( "Creating vector search index " + indexName + " on host " + connectionString); - // for testing only, change to host to connectionString for production - String host = connectionString.replace("couchbase://", "").split(":")[0]; - // System.out.println("Extracted host: " + host); + String host = + connectionString + .replace("couchbases://", "") + .replace("couchbase://", "") + .split(":")[0]; + System.out.println("Extracted host: " + host); String urlStr = - "http://" + "https://" // for testing use http + host + ":" + port