Skip to content

Commit b4b20ba

Browse files
format fix
1 parent 892b247 commit b4b20ba

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

modules/devguide/examples/java/ParameterizedVectorQuery.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ public static void main(String[] args) throws Exception {
2222
try {
2323
// tag::parameterized[]
2424
final QueryResult result = cluster.query(
25-
"SELECT d.id, d.question, d.wanted_similar_color_from_search, " + " ARRAY_CONCAT( "
26-
+ "d.couchbase_search_query.knn[0].vector[0:4], " + "['...'] " + ") AS vector "
27-
+ "FROM `vector-sample`.`color`.`rgb-questions` AS d " + "WHERE d.id = $id;",
25+
"SELECT d.id, d.question, d.wanted_similar_color_from_search, " +
26+
" ARRAY_CONCAT( " +
27+
"d.couchbase_search_query.knn[0].vector[0:4], " +
28+
"['...'] " +
29+
") AS vector " +
30+
"FROM `vector-sample`.`color`.`rgb-questions` AS d " +
31+
"WHERE d.id = $id;",
2832
queryOptions()
29-
.metrics(true)
3033
.parameters(JsonObject.create().put("id", "#87CEEB")));
3134

3235
for (JsonObject row : result.rowsAsObject()) {

0 commit comments

Comments
 (0)