Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
Add-s-to-url-couchbase (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrank241 authored Aug 1, 2024
1 parent fd61c1d commit e39f951
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e39f951

Please sign in to comment.