Skip to content

Commit 9176508

Browse files
authored
Merge pull request #904 from elastic/docs-review
Docs update for Elasticsearch 7
2 parents adb0c11 + bc45023 commit 9176508

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Quickstart
113113

114114
In elasticsearch-php, almost everything is configured by associative arrays. The REST endpoint, document and optional parameters - everything is an associative array.
115115

116-
To index a document, we need to specify four pieces of information: index, id and a document body. This is done by
116+
To index a document, we need to specify three pieces of information: index, id and a document body. This is done by
117117
constructing an associative array of key:value pairs. The request body is itself an associative array with key:value pairs
118118
corresponding to the data in your document:
119119

@@ -165,7 +165,7 @@ $response = $client->get($params);
165165
print_r($response);
166166
```
167167

168-
The response contains some metadata (index, version, etc.) as well as a `_source` field, this is the original document
168+
The response contains some metadata (index, version, etc.) as well as a `_source` field, which is the original document
169169
that you sent to Elasticsearch.
170170

171171
```php

docs/quickstart.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $client = ClientBuilder::create()->build();
4040

4141
In elasticsearch-php, almost everything is configured by associative arrays. The REST endpoint, document and optional parameters - everything is an associative array.
4242

43-
To index a document, we need to specify four pieces of information: index, id and a document body. This is done by
43+
To index a document, we need to specify three pieces of information: index, id and a document body. This is done by
4444
constructing an associative array of key:value pairs. The request body is itself an associative array with key:value pairs
4545
corresponding to the data in your document:
4646

@@ -87,7 +87,7 @@ $response = $client->get($params);
8787
print_r($response);
8888
----------------------------
8989

90-
The response contains some metadata (index, etc) as well as a `_source` field...this is the original document
90+
The response contains some metadata (index, version, etc.) as well as a `_source` field, which is the original document
9191
that you sent to Elasticsearch.
9292

9393
[source,php]

0 commit comments

Comments
 (0)