Skip to content

Commit 5eed5a8

Browse files
index creation
DOC-11539
1 parent 3d0d751 commit 5eed5a8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

modules/howtos/pages/n1ql-queries-with-sdk.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ include::example$SimpleQuery.java[tag=class,indent=0]
5151
--
5252
====
5353

54-
Let's break it down. A query is always performed at the `Cluster` level, using the `query` method. It takes the statement as a required argument and then allows to provide additional options if needed (in the example above, no options are specified).
54+
Note that building indexes is covered in some detail on the xref:concept-docs:n1ql-query.adoc#index-building[Query concept page], which you should take a quick look at --
55+
and in the https://docs.couchbase.com/sdk-api/couchbase-java-client/com/couchbase/client/java/manager/query/package-summary.html[API Reference].
56+
57+
Let's break down the above code snippet.
58+
A query is always performed at the `Cluster` level, using the `query` method. It takes the statement as a required argument and then allows to provide additional options if needed (in the example above, no options are specified).
5559

5660
Once a result returns you can iterate the returned rows and/or accessing the `QueryMetaData` associated with the query. If something goes wrong during the execution of the query, a derivate of the `CouchbaseException` will be thrown that also provides additional context on the operation:
5761

0 commit comments

Comments
 (0)