Skip to content

Commit 9fa1e12

Browse files
authored
[DOCS] Rearranges Examples section in Node.JS book (#1425)
1 parent 7a3cfe7 commit 9fa1e12

17 files changed

+17
-17
lines changed

docs/examples/asStream.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[as_stream_examples]]
2-
== asStream
2+
=== asStream
33

44
Instead of getting the parsed body back, you will get the raw Node.js stream of
55
data.

docs/examples/bulk.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[bulk_examples]]
2-
== Bulk
2+
=== Bulk
33

44
The `bulk` API makes it possible to perform many index/delete operations in a
55
single API call. This can greatly increase the indexing speed.

docs/examples/exists.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[exists_examples]]
2-
== Exists
2+
=== Exists
33

44
Check that the document `/game-of-thrones/1` exists.
55

docs/examples/get.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[get_examples]]
2-
== Get
2+
=== Get
33

44
The get API allows to get a typed JSON document from the index based on its id.
55
The following example gets a JSON document from an index called

docs/examples/ignore.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[ignore_examples]]
2-
== Ignore
2+
=== Ignore
33

44
HTTP status codes which should not be considered errors for this request.
55

docs/examples/index.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[examples]]
2-
= Examples
2+
== Examples
33

44
Following you can find some examples on how to use the client.
55

docs/examples/msearch.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[msearch_examples]]
2-
== MSearch
2+
=== MSearch
33

44
The multi search API allows to execute several search requests within the same
55
API.

docs/examples/reindex.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[reindex_examples]]
2-
== Reindex
2+
=== Reindex
33

44
The `reindex` API extracts the document source from the source index and indexes
55
the documents into the destination index. You can copy all documents to the

docs/examples/scroll.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[scroll_examples]]
2-
== Scroll
2+
=== Scroll
33

44
While a search request returns a single “page” of results, the scroll API can be
55
used to retrieve large numbers of results (or even all results) from a single

docs/examples/search.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[search_examples]]
2-
== Search
2+
=== Search
33

44
The `search` API allows you to execute a search query and get back search hits
55
that match the query. The query can either be provided using a simple

docs/examples/sql.query.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[sql_query_examples]]
2-
== SQL
2+
=== SQL
33

44
{es} SQL is an X-Pack component that allows SQL-like queries to be executed in
55
real-time against {es}. Whether using the REST interface, command-line or JDBC,

docs/examples/suggest.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[suggest_examples]]
2-
== Suggest
2+
=== Suggest
33

44
The suggest feature suggests similar looking terms based on a provided text by
55
using a suggester. _Parts of the suggest feature are still under development._

docs/examples/transport.request.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[transport_request_examples]]
2-
== transport.request
2+
=== transport.request
33

44
It can happen that you need to communicate with {es} by using an API that is not
55
supported by the client, to mitigate this issue you can directly call

docs/examples/typescript.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[typescript_examples]]
2-
== Typescript
2+
=== Typescript
33

44
The client offers a first-class support for TypeScript, since it ships the type
55
definitions for every exposed API.

docs/examples/update.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[update_examples]]
2-
== Update
2+
=== Update
33

44
The update API allows updates of a specific document using the given script. In
55
the following example, we will index a document that also tracks how many times

docs/examples/update_by_query.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[update_by_query_examples]]
2-
== Update By Query
2+
=== Update By Query
33

44
The simplest usage of _update_by_query just performs an update on every document
55
in the index without changing the source. This is useful to pick up a new

docs/index.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ include::observability.asciidoc[]
1717
include::transport.asciidoc[]
1818
include::typescript.asciidoc[]
1919
include::reference.asciidoc[]
20+
include::examples/index.asciidoc[]
2021
include::breaking-changes.asciidoc[]
2122
include::helpers.asciidoc[]
22-
include::examples/index.asciidoc[]

0 commit comments

Comments
 (0)