diff --git a/doc/3/controllers/collection/get-mapping/index.md b/doc/3/controllers/collection/get-mapping/index.md index e38a7371..43dcffa5 100644 --- a/doc/3/controllers/collection/get-mapping/index.md +++ b/doc/3/controllers/collection/get-mapping/index.md @@ -30,4 +30,4 @@ Returns a `ConcurrentHashMap` representing the collection mappin ## Usage -<<< ./snippets/get-mapping.js \ No newline at end of file +<<< ./snippets/get-mapping.java \ No newline at end of file diff --git a/doc/3/controllers/collection/truncate/index.md b/doc/3/controllers/collection/truncate/index.md index a8819665..9d434cc7 100644 --- a/doc/3/controllers/collection/truncate/index.md +++ b/doc/3/controllers/collection/truncate/index.md @@ -26,4 +26,4 @@ public CompletableFuture truncate( ## Usage -<<< ./snippets/truncate.js +<<< ./snippets/truncate.java diff --git a/doc/3/controllers/document/delete-by-query/index.md b/doc/3/controllers/document/delete-by-query/index.md index c59a5abc..90f5b06f 100644 --- a/doc/3/controllers/document/delete-by-query/index.md +++ b/doc/3/controllers/document/delete-by-query/index.md @@ -43,4 +43,4 @@ Returns an `ArrayList` containing the deleted document ids. ## Usage -<<< ./snippets/delete-by-query.js \ No newline at end of file +<<< ./snippets/delete-by-query.java \ No newline at end of file diff --git a/doc/3/controllers/document/update-by-query/index.md b/doc/3/controllers/document/update-by-query/index.md index 09f0d8b0..0248c35d 100644 --- a/doc/3/controllers/document/update-by-query/index.md +++ b/doc/3/controllers/document/update-by-query/index.md @@ -73,4 +73,4 @@ Each errored document is an object of the `errors` array with the following prop ## Usage -<<< ./snippets/update-by-query.js \ No newline at end of file +<<< ./snippets/update-by-query.java \ No newline at end of file diff --git a/doc/3/controllers/document/update/snippets/update.test.yml b/doc/3/controllers/document/update/snippets/update.test.yml index f16f3719..23a066ff 100644 --- a/doc/3/controllers/document/update/snippets/update.test.yml +++ b/doc/3/controllers/document/update/snippets/update.test.yml @@ -8,4 +8,4 @@ hooks: curl -XPOST -d '{"name":"John"}' -H "Content-Type: application/json" kuzzle:7512/nyc-open-data/yellow-taxi/some-id/_create after: template: print-result -expected: "{_id=some-id, _version=2}" \ No newline at end of file +expected: "_id=some-id, _version=2" \ No newline at end of file