File tree Expand file tree Collapse file tree 1 file changed +18
-16
lines changed
examples/docs/src/Examples/Docs/Docs Expand file tree Collapse file tree 1 file changed +18
-16
lines changed Original file line number Diff line number Diff 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 '
You can’t perform that action at this time.
0 commit comments