Skip to content

Commit af6b836

Browse files
include:: (devguide) fixes
1 parent 94fd065 commit af6b836

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

modules/howtos/pages/analytics-using-sdk.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,13 @@ We can then query the Dataset as normal, using the fully qualified keyspace:
220220

221221
[source,java]
222222
----
223-
include::../examples/Analytics.java[tag=handle-collection,indent=0]
223+
include::devguide:example$java/Analytics.java[tag=handle-collection,indent=0]
224224
----
225225

226226
Note that using the `CREATE DATASET` syntax we could choose any Dataset name in any Dataverse, including the default.
227227
However the SDK supports this standard convention, allowing us to query from the Scope object:
228228

229229
[source,java]
230230
----
231-
include::../examples/Analytics.java[tag=handle-scope,indent=0]
231+
include::devguide:example$java/Analytics.java[tag=handle-scope,indent=0]
232232
----

modules/howtos/pages/distributed-acid-transactions-from-the-sdk.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ You could also log a successful transaction like so:
131131
include::devguide:example$java/TransactionsExample.java[tag=logging-success,indent=0]
132132
----
133133

134+
134135
== Key-Value Operations
135136

136137
You can perform transactional database operations using familiar key-value CRUD methods:
@@ -258,6 +259,7 @@ Generally, you will need to do `ctx.remove(...).then(...)` rather than `ctx.remo
258259
--
259260
====
260261

262+
261263
== {sqlpp} Queries
262264

263265
If you already use https://www.couchbase.com/products/n1ql[{sqlpp} (formerly N1QL)], then its use in transactions is very similar.
@@ -333,6 +335,7 @@ include::devguide:example$java/TransactionsExample.java[tag=queryOptions,indent=
333335
| `raw(String, Object)` | Escape hatch to add arguments that are not covered by these options.
334336
|===
335337

338+
336339
== Mixing Key-Value and {sqlpp}
337340

338341
Key-Value and {sqlpp} query operations can be freely intermixed, and will interact with each other as you would expect.
@@ -348,6 +351,7 @@ include::devguide:example$java/TransactionsExample.java[tag=queryRyow,indent=0]
348351

349352
include::{version-common}@sdk:shared:partial$acid-transactions.adoc[tag=rbac]
350353

354+
351355
== Concurrent Operations
352356

353357
The reactive API allows operations to be performed concurrently inside a transaction, which can assist performance.
@@ -370,13 +374,14 @@ These events are raised when a non-transactional write has been detected and ove
370374

371375
[source,java]
372376
----
373-
include::howtos:example$TransactionsExample.java[tag=concurrency,indent=0]
377+
include::devguide:example$java/TransactionsExample.java[tag=concurrency,indent=0]
374378
----
375379

376380
The event contains the key of the document involved, to aid the application with debugging.
377381

378382
See xref:concept-docs:transactions.adoc#concurrency-with-non-transactional-writes[Concurrency with Non-Transactional Writes] to learn more.
379383

384+
380385
== Configuration
381386

382387
The default configuration should be appropriate for most use-cases.
@@ -397,6 +402,7 @@ include::devguide:example$java/TransactionsExample.java[tag=config-easy,indent=0
397402

398403
include::{version-common}@sdk:shared:partial$acid-transactions.adoc[tag=config]
399404

405+
400406
== Additional Resources
401407

402408
* Learn more about xref:concept-docs:transactions.adoc[Distributed ACID Transactions].

modules/howtos/pages/vector-searching-with-sdk.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,6 @@ include::devguide:example$java/Search.java[tag=vector4,indent=0]
127127

128128
* xref:server:vector-search:vector-search.adoc[Vector Search for AI Apps docs (self-managed Couchbase Server)]
129129
* xref:cloud::vector-search:vector-search.adoc[Vector Search for AI Apps docs (Capella DBaaS)]
130-
* Vector Search in the https://docs.couchbase.com/sdk-api/couchbase-scala-client/com/couchbase/client/scala/search/vector/index.html[Scala API reference].
130+
* Vector Search in the https://docs.couchbase.com/sdk-api/couchbase-java-client/com/couchbase/client/java/search/vector/VectorSearch.html[Java API reference].
131131

132132
// https://developer.couchbase.com/tutorial-python-langchain-pdf-chat

0 commit comments

Comments
 (0)