Skip to content

Commit 3eed90d

Browse files
Tweaks
1 parent 5baf5bf commit 3eed90d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

modules/devguide/examples/java/SimpleVectorQuery.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class SimpleVectorQuery {
2121
static String username = "Administrator";
2222
static String password = "password";
2323

24-
public static void main(String[] args) throws Exception {
24+
public static void main(String[] args) throws Exception {
2525
Cluster cluster = Cluster.connect(
2626
connectionString,
2727
ClusterOptions.clusterOptions(username, password).environment(env -> {
@@ -32,7 +32,7 @@ public static void main(String[] args) throws Exception {
3232
{
3333
try {
3434
// tag::hyperscale[]
35-
final QueryResult result = cluster.query(
35+
QueryResult result = cluster.query(
3636
"SELECT d.id, d.question, d.wanted_similar_color_from_search, " +
3737
" ARRAY_CONCAT( " +
3838
"d.couchbase_search_query.knn[0].vector[0:4], " +
@@ -44,8 +44,8 @@ public static void main(String[] args) throws Exception {
4444

4545
for (JsonObject row : result.rowsAsObject()) {
4646
System.out.println(row);
47+
}
4748
// end::hyperscale[]
48-
}
4949
} catch (CouchbaseException ex) {
5050
ex.printStackTrace();
5151
}

0 commit comments

Comments
 (0)