Skip to content

Commit 4ddc91a

Browse files
authored
Merge pull request #939 from philkra/add-missing-doc-example
[Backport] Add missing Doc Example
2 parents ee77261 + ed84392 commit 4ddc91a

File tree

4 files changed

+18
-28
lines changed

4 files changed

+18
-28
lines changed

examples/47b5ff897f26e9c943cee5c06034181d.adoc

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/c5e5873783246c7b1c01d8464fed72c4.adoc

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/d90a84a24a407731dfc1929ac8327746.adoc

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/docs/src/Examples/Docs/Docs/Get.php

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -140,22 +140,24 @@ public function testExampleL109_913770050ebbf3b9b549a899bc11060a()
140140
{
141141
$client = $this->getClient();
142142
// tag::913770050ebbf3b9b549a899bc11060a[]
143-
// TODO -- Implement Example
144-
// PUT twitter
145-
// {
146-
// "mappings": {
147-
// "properties": {
148-
// "counter": {
149-
// "type": "integer",
150-
// "store": false
151-
// },
152-
// "tags": {
153-
// "type": "keyword",
154-
// "store": true
155-
// }
156-
// }
157-
// }
158-
// }
143+
$params = [
144+
'index' => 'twitter',
145+
'body' => [
146+
'mappings' => [
147+
'properties' => [
148+
'counter' => [
149+
'type' => 'integer',
150+
'store' => false,
151+
],
152+
'tags' => [
153+
'type' => 'keyword',
154+
'store' => true,
155+
],
156+
],
157+
],
158+
],
159+
];
160+
$response = $client->indices()->putMapping($params);
159161
// end::913770050ebbf3b9b549a899bc11060a[]
160162

161163
$curl = 'PUT twitter'

0 commit comments

Comments
 (0)