Skip to content

Commit cfabbdf

Browse files
committed
[DOCS] Reviews namespaces.asciidoc.
1 parent 5830d5f commit cfabbdf

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

docs/namespaces.asciidoc

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
== Namespaces
33

44
The client has a number of "namespaces", which generally expose administrative
5-
functionality. The namespaces correspond to the various administrative endpoints
6-
in Elasticsearch. This is a complete list of namespaces:
5+
functionality. The namespaces correspond to the various administrative endpoints
6+
in {es}. This is a complete list of namespaces:
77

88

99
[width="40%",options="header",frame="topbot"]
1010
|============================
11-
| Namespace | Functionality
11+
| Namespace | Functionality
1212
| `indices()` | Index-centric stats and info
1313
| `nodes()` | Node-centric stats and info
1414
| `cluster()` | Cluster-centric stats and info
1515
| `snapshot()` | Methods to snapshot/restore your cluster and indices
1616
| `cat()` | Access to the Cat API (which is generally used standalone from the command line
1717
|============================
1818

19-
Some methods are available in several different namespaces, which give you
20-
the same information but grouped into different contexts. To see how these
19+
Some methods are available in several different namespaces, which give you the
20+
same information but grouped into different contexts. To see how these
2121
namespaces work, let's look at the `_stats` output:
2222

2323

@@ -39,8 +39,8 @@ $response = $client->cluster()->stats();
3939
----
4040
{zwsp} +
4141

42-
As you can see, the same `stats()` call is made through three different
43-
namespaces. Sometimes the methods require parameters. These parameters work
42+
As you can see, the same `stats()` call is made through three different
43+
namespaces. Sometimes the methods require parameters. These parameters work
4444
just like any other method in the library.
4545

4646
For example, we can requests index stats about a specific index, or multiple
@@ -60,7 +60,7 @@ $response = $client->indices()->stats($params);
6060
----
6161
{zwsp} +
6262

63-
As another example, here is how you might add an alias to an existing index:
63+
The following example shows how you can add an alias to an existing index:
6464

6565
[source,php]
6666
----
@@ -77,6 +77,7 @@ $params['body'] = array(
7777
$client->indices()->updateAliases($params);
7878
----
7979

80-
Notice how both the `stats` calls and the updateAlias took a variety of parameters,
81-
each according to what the particular API requires. The `stats` API only requires
82-
an index name(s), while the `updateAlias` requires a body of actions.
80+
Notice how both the `stats` calls and the updateAlias took a variety of
81+
parameters, each according to what the particular API requires. The `stats` API
82+
only requires an index name(s), while the `updateAlias` requires a body of
83+
actions.

0 commit comments

Comments
 (0)