Lines Matching refs:index
9 ==== Create an index
11 The index operations are all contained under a distinct namespace, separated
13 create a new index:
19 'index' => 'my_index'
22 // Create the index
27 You can specify any parameters that would normally be included in a new index
35 'index' => 'my_index',
58 // Create the index with mappings and settings now
64 ==== Create an index (advanced example)
66 This is a more complicated example of creating an index, showing how to define
67 analyzers, tokenizers, filters and index settings. Although essentially the same
74 'index' => 'reuters',
134 <1> The top level `settings` contains config about the index (# of shards, etc)
142 ==== Delete an index
144 Deleting an index is very simple:
148 $params = ['index' => 'my_index'];
156 The PUT Settings API allows you to modify any index setting that is dynamic:
161 'index' => 'my_index',
182 // Get settings for one index
183 $params = ['index' => 'my_index'];
188 'index' => [ 'my_index', 'my_index2' ]
197 The PUT Mappings API allows you to modify or add to an existing index's mapping.
201 // Set the index and type
203 'index' => 'my_index',
220 // Update the index mapping
237 $params = ['index' => 'my_index'];
242 'index' => [ 'my_index', 'my_index2' ]