@@ -64,7 +64,7 @@ print_r($response);
64
64
65
65
The response that you get back indicates that the document was created in the
66
66
index that you specified. The response is an associative array containing a
67
- decoded version of the JSON that Elasticsearch returns:
67
+ decoded version of the JSON that {es} returns:
68
68
69
69
[source,php]
70
70
----------------------------
@@ -97,7 +97,7 @@ print_r($response);
97
97
98
98
99
99
The response contains metadata such as index, version, and so on as well as a
100
- `_source` field, which is the original document you sent to Elasticsearch .
100
+ `_source` field, which is the original document you sent to {es} .
101
101
102
102
[source,php]
103
103
----------------------------
@@ -119,8 +119,8 @@ Array
119
119
120
120
=== Search for a document
121
121
122
- Searching is a hallmark of Elasticsearch , so let's perform a search. We are
123
- going to use the `match` query as a demonstration:
122
+ Searching is a hallmark of {es} , so let's perform a search. We are going to use
123
+ the `match` query as a demonstration:
124
124
125
125
[source,php]
126
126
----------------------------
@@ -214,9 +214,9 @@ Array
214
214
215
215
=== Delete an index
216
216
217
- Due to the dynamic nature of Elasticsearch , the first document you added
218
- automatically built an index with some default settings. Delete that index and
219
- specify your own settings later:
217
+ Due to the dynamic nature of {es} , the first document you added automatically
218
+ built an index with some default settings. Delete that index and specify your
219
+ own settings later:
220
220
221
221
[source,php]
222
222
----------------------------
@@ -259,7 +259,7 @@ $response = $client->indices()->create($params);
259
259
print_r($response);
260
260
----------------------------
261
261
262
- Elasticsearch now creates that index with your chosen settings and return an
262
+ {es} now creates that index with your chosen settings and return an
263
263
acknowledgement:
264
264
265
265
[source,php]
@@ -274,8 +274,8 @@ Array
274
274
=== Wrap up
275
275
276
276
That was just a crash-course overview of the client and it's syntax. If you are
277
- familiar with Elasticsearch , you'll notice that the methods are named just like
278
- REST endpoints.
277
+ familiar with {es} , you'll notice that the methods are named just like REST
278
+ endpoints.
279
279
280
280
You may also notice that the client is configured in a manner that facilitates
281
281
easy discovery via your IDE. All core actions are available under the `$client`
0 commit comments