From 177aae20e6820f69e1ee3cc2488426d57a4f4012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Tue, 26 Nov 2019 08:26:57 +0100 Subject: [PATCH] [DOCS] Fine-tunes the Node.js client API reference section. (#1006) --- docs/reference.asciidoc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index c1fc1ffba..7806911c5 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -1,12 +1,18 @@ [[api-reference]] == API Reference -This document contains the entire list of the Elasticsearch API supported by the client, both OSS and commercial. The client is entirely licensed under Apache 2.0. +This document contains the entire list of the {es} API supported by the client, +both OSS and commercial. The client is entirely licensed under Apache 2.0. -Elasticsearch exposes an HTTP layer to communicate with, and the client is a library that will help you do this. Because of this reason, you will see HTTP related parameters, such as `body` or `headers`. +{es} exposes an HTTP layer to communicate with, and the client is a library that +helps you do this. Because of this reason, you will see HTTP related parameters, +such as `body` or `headers`. -Every API can accept two objects, the first contains all the parameters that will be sent to Elasticsearch, while the second includes the request specific parameters, such as timeouts, headers, and so on. -In the first object, every parameter but the body will be sent via querystring or url parameter, depending on the API, and every unrecognized parameter will be sent as querystring. +Every API can accept two objects, the first contains all the parameters that +will be sent to {es}, while the second includes the request specific parameters, +such as timeouts, headers, and so on. In the first object, every parameter but +the body will be sent via querystring or url parameter, depending on the API, +and every unrecognized parameter will be sent as querystring. [source,js] ---- @@ -35,7 +41,10 @@ client.search({ }) ---- -In this document, you will find the reference of every parameter accepted by the querystring or the url. If you also need to send the body, you can find the documentation of its format in the reference link that is present along with every endpoint. +In this document, you will find the reference of every parameter accepted by the +querystring or the url. If you also need to send the body, you can find the +documentation of its format in the reference link that is present along with +every endpoint. ////////