Skip to content

Commit a4af06e

Browse files
committed
Missing Implementation for docex
1 parent 03337ac commit a4af06e

File tree

1 file changed

+18
-16
lines changed
  • examples/docs/src/Examples/Docs/Docs

1 file changed

+18
-16
lines changed

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)