elastics-client 1.1.11 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ # These methods are available as Elastics.<method>(*vars)
2
+ # you can get the updated full reference and usage example of these methods
3
+ # by just doing in the console:
4
+ # Elastics.doc
5
+
6
+ cat:
7
+ - GET
8
+ -
9
+ -
10
+ - REFERENCES:
11
+ group: cat_api
12
+ api_name: Cat API
13
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html
14
+ notice: "You must pass the :path variable or you can pass it as a simple string argument: Elastics.cat('/path')"
@@ -1,4 +1,4 @@
1
- # These methods are available as Elastics.<method>(variable_hash)
1
+ # These methods are available as Elastics.<method>(*vars)
2
2
  # you can get the updated full reference and usage example of these methods
3
3
  # by just doing in the console:
4
4
  # Elastics.doc
@@ -7,88 +7,140 @@
7
7
 
8
8
  #-----------------------------------------------------------------------------#
9
9
  ### Health ###
10
- # http://www.elasticsearch.org/guide/reference/api/admin-cluster-health/
11
10
 
12
- # you can pass the params as the :params variable
13
11
  cluster_health:
14
12
  - GET
15
13
  - /_cluster/health/<<index>>
14
+ -
15
+ - REFERENCES:
16
+ group: cluster_api
17
+ api_name: Health
18
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html
19
+ notice: "You can pass the params as the :params variable."
16
20
 
17
21
 
18
22
 
19
23
  #-----------------------------------------------------------------------------#
20
24
  ### State ###
21
- # http://www.elasticsearch.org/guide/reference/api/admin-cluster-state/
22
25
 
23
- # you can pass the params as the :params variable
24
26
  cluster_state:
25
27
  - GET
26
- - /_cluster/state
28
+ - /_cluster/state/<<metrics= _all >>/<<index>>
29
+ -
30
+ - REFERENCES:
31
+ group: cluster_api
32
+ api_name: State
33
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-state.html
34
+ notice: "You can pass the metrics as the :metrics variable."
27
35
 
28
36
 
29
37
 
30
38
  #-----------------------------------------------------------------------------#
31
- ### Update Settings ###
32
- # http://www.elasticsearch.org/guide/reference/api/admin-cluster-update-settings/
39
+ ### Stats ###
33
40
 
34
- # you must pass the settings structure as the :data variable
35
- put_cluster_settings:
36
- - PUT
37
- - /_cluster/settings
41
+ cluster_stats:
42
+ - GET
43
+ - /_cluster/stats
44
+ -
45
+ - REFERENCES:
46
+ group: cluster_api
47
+ api_name: Stats
48
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-stats.html
49
+ notice: "You can pass the params as the :params variable."
38
50
 
39
- get_cluster_settings:
51
+
52
+
53
+ #-----------------------------------------------------------------------------#
54
+ ### Pending Cluster Tasks ###
55
+
56
+ cluster_pending_tasks:
40
57
  - GET
41
- - /_cluster/settings
58
+ - /_cluster/pending_tasks
59
+ -
60
+ - REFERENCES:
61
+ group: cluster_api
62
+ api_name: Pending Cluster Tasks
63
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-pending.html
64
+ notice: "You can pass the params as the :params variable."
42
65
 
43
66
 
44
67
 
45
68
  #-----------------------------------------------------------------------------#
46
- ### Nodes Info ###
47
- # http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-info/
48
- # http://www.elasticsearch.org/guide/reference/api/
69
+ ### Cluster Reroute ###
49
70
 
50
- # uses the _nodes shortcut
51
- cluster_nodes_info:
71
+ cluster_reroute:
72
+ - POST
73
+ - /_cluster/reroute
74
+ -
75
+ - REFERENCES:
76
+ group: cluster_api
77
+ api_name: Cluster Reroute
78
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-reroute.html
79
+ notice: "You must pass the data structure as the :data variable."
80
+
81
+
82
+
83
+ #-----------------------------------------------------------------------------#
84
+ ### Cluster Update Settings ###
85
+
86
+ get_cluster_settings:
52
87
  - GET
53
- - /_nodes/<<nodes= ~ >>/<<endpoint= ~ >>
88
+ - /_cluster/settings
89
+ -
90
+ - REFERENCES: &cluster_settings
91
+ api_name: Cluster Update Settings
92
+ api_url: http://www.elasticsearch.org/guide/reference/api/admin-cluster-update-settings
93
+
94
+ put_cluster_settings:
95
+ - PUT
96
+ - /_cluster/settings
97
+ -
98
+ - REFERENCES:
99
+ group: cluster_api
100
+ <<: *cluster_settings
101
+ notice: "You must pass the data structure as the :data variable."
54
102
 
55
103
 
56
104
 
57
105
  #-----------------------------------------------------------------------------#
58
106
  ### Nodes Stats ###
59
- # http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-stats/
60
107
 
61
108
  cluster_nodes_stats:
62
109
  - GET
63
- - /_nodes/<<nodes= ~ >>/stats/<<endpoint= ~ >>
110
+ - /_nodes/<<nodes= ~ >>/stats/<<stats= ~ >>
111
+ -
112
+ - REFERENCES:
113
+ group: cluster_api
114
+ api_name: Nodes Stats
115
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html
116
+ notice: "You can pass the params as the :params variable. You must pass the data structure as the :data variable."
64
117
 
65
118
 
66
119
 
67
120
  #-----------------------------------------------------------------------------#
68
- ### Nodes Shutdown ###
69
- # http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown/
121
+ ### Nodes Info ###
122
+
123
+ cluster_nodes_info:
124
+ - GET
125
+ - /_nodes/<<nodes= ~ >>/<<info= ~ >>
126
+ -
127
+ - REFERENCES:
128
+ group: cluster_api
129
+ api_name: Nodes Info
130
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-info.html
131
+ notice: "This template uses the _nodes shortcut."
70
132
 
71
- cluster_nodes_shutdown:
72
- - POST
73
- - /_cluster/nodes/<<nodes= ~ >>/_shutdown
74
133
 
75
134
 
76
135
 
77
136
  #-----------------------------------------------------------------------------#
78
137
  ### Nodes Hot Threads ###
79
- # http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-hot-threads/
80
138
 
81
139
  cluster_nodes_hot_threads:
82
140
  - GET
83
141
  - /_nodes/<<nodes= ~ >>/hot_threads
84
-
85
-
86
-
87
- #-----------------------------------------------------------------------------#
88
- ### Cluster Reroute ###
89
- # http://www.elasticsearch.org/guide/reference/api/admin-cluster-reroute.html
90
-
91
- # you must pass the data structure as the :data variable
92
- cluster_reroute:
93
- - POST
94
- - /_cluster/reroute
142
+ -
143
+ - REFERENCES:
144
+ group: cluster_api
145
+ api_name: Nodes Hot Threads
146
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html
@@ -0,0 +1,154 @@
1
+ # These methods are available as Elastics.<method>(*vars)
2
+ # you can get the updated full reference and usage example of these methods
3
+ # by just doing in the console:
4
+ # Elastics.doc
5
+
6
+
7
+
8
+ #-----------------------------------------------------------------------------#
9
+ ### Index API ###
10
+
11
+ store:
12
+ - PUT
13
+ - /<<index>>/<<type>>/<<id>>
14
+ -
15
+ - REFERENCES: &index
16
+ group: document_api
17
+ api_name: Index API
18
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html
19
+ notice: "You must pass the :data variable."
20
+ aliases:
21
+ - :put_store
22
+
23
+ post_store:
24
+ - POST
25
+ - /<<index>>/<<type>>
26
+ -
27
+ - REFERENCES:
28
+ <<: *index
29
+ notice: "The id is assigned by elasticsearch; you must pass the :data variable."
30
+
31
+
32
+
33
+ #-----------------------------------------------------------------------------#
34
+ ### Get API ###
35
+
36
+ get:
37
+ - GET
38
+ - /<<index>>/<<type>>/<<id>>
39
+ -
40
+ - &get
41
+ REFERENCES:
42
+ group: document_api
43
+ api_name: Get API
44
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html
45
+
46
+ get_source:
47
+ - GET
48
+ - /<<index>>/<<type>>/<<id>>/_source
49
+ -
50
+ - *get
51
+
52
+
53
+
54
+ #-----------------------------------------------------------------------------#
55
+ ### Delete ###
56
+
57
+ delete: &delete
58
+ - DELETE
59
+ - /<<index>>/<<type>>/<<id>>
60
+ -
61
+ - REFERENCES:
62
+ group: document_api
63
+ api_name: Delete API
64
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html
65
+ notice: "You must pass the :data variable."
66
+ aliases:
67
+ - :remove
68
+
69
+
70
+
71
+ #-----------------------------------------------------------------------------#
72
+ ### Update API ###
73
+
74
+ update:
75
+ - POST
76
+ - /<<index>>/<<type>>/<<id>>/_update
77
+ -
78
+ - REFERENCES:
79
+ group: document_api
80
+ api_name: Update API
81
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html
82
+ notice: "You must pass script or doc and the other options as the :data variable."
83
+
84
+
85
+
86
+ #-----------------------------------------------------------------------------#
87
+ ### Multi Get API ###
88
+
89
+ multi_get_ids:
90
+ - GET
91
+ - /<<index>>/<<type>>/_mget
92
+ - ids: << ids >>
93
+ - REFERENCES: &multi_get
94
+ group: document_api
95
+ api_name: Multi Get API
96
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-get.html
97
+ notice: "You must pass the :ids array."
98
+ aliases:
99
+ - :multi_get
100
+
101
+ multi_get_docs:
102
+ - GET
103
+ - /<<index>>/<<type>>/_mget
104
+ - docs: << docs >>
105
+ - REFERENCES:
106
+ <<: *multi_get
107
+ notice: "You must pass the :docs array."
108
+
109
+
110
+
111
+ #-----------------------------------------------------------------------------#
112
+ ### Bulk API ###
113
+
114
+ post_bulk_string:
115
+ - POST
116
+ - /_bulk
117
+ - << bulk_string >>
118
+ - REFERENCES:
119
+ group: document_api
120
+ api_name: Bulk API
121
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
122
+ notice: "You must pass the :docs array."
123
+ aliases:
124
+ - :bulk
125
+
126
+
127
+
128
+ #-----------------------------------------------------------------------------#
129
+ ### Term Vectors ###
130
+
131
+ termvector:
132
+ - POST
133
+ - /<<index>>/<<type>>/<<id>>/_termvector
134
+ -
135
+ - REFERENCES:
136
+ group: document_api
137
+ api_name: Term Vectors
138
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-termvectors.html
139
+ notice: "You must pass the options as the :data variable."
140
+
141
+
142
+
143
+ #-----------------------------------------------------------------------------#
144
+ ### Multi Termvectors API ###
145
+
146
+ multi_termvectors:
147
+ - POST
148
+ - /<<index>>/<<type>>/_mtermvectors
149
+ - docs: <<docs= ~ >>
150
+ - REFERENCES:
151
+ group: document_api
152
+ api_name: Multi Termvectors API
153
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-termvectors.html
154
+ notice: "You must pass the docs array as the :docs variable or use the :data variable for the simplified request."
@@ -0,0 +1,32 @@
1
+ # These methods are available as Elastics.<method>(*vars)
2
+ # you can get the updated full reference and usage example of these methods
3
+ # by just doing in the console:
4
+ # Elastics.doc
5
+
6
+
7
+
8
+ #-----------------------------------------------------------------------------#
9
+ ### API additions ###
10
+
11
+ match_all:
12
+ - GET
13
+ - /<<index>>/<<type>>/_search
14
+ - query:
15
+ match_all:
16
+ {}
17
+ - REFERENCES:
18
+ group: elastics_additions
19
+ notice: "Not a real API method, but handy."
20
+
21
+
22
+ #-----------------------------------------------------------------------------#
23
+
24
+ search_by_id:
25
+ - GET
26
+ - /<<index>>/<<type>>/_search
27
+ - query:
28
+ term:
29
+ _id: <<id>>
30
+ - REFERENCES:
31
+ group: elastics_additions
32
+ notice: "Get a document without using the get API and without raising any error if it is missing."
@@ -1,66 +1,27 @@
1
- # These methods are available as Elastics.<method>(variable_hash)
1
+ # These methods are available as Elastics.<method>(*vars)
2
2
  # you can get the updated full reference and usage example of these methods
3
3
  # by just doing in the console:
4
4
  # Elastics.doc
5
5
 
6
6
 
7
7
 
8
- #-----------------------------------------------------------------------------#
9
- ### Aliases ###
10
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/
11
-
12
- # this is the generic interface allowing all options
13
- # you must pass the aliases API structure as :data variable
14
- post_index_aliases:
15
- - POST
16
- - /_aliases
17
- - actions: <<actions>>
18
-
19
- get_index_aliases:
20
- - GET
21
- - /<<index>>/_aliases
22
-
23
- # this is the single index alias
24
- # you can pass other options as :data variable
25
- put_index_alias:
26
- - PUT
27
- - /<<index>>/_alias/<<alias>>
28
-
29
- delete_index_alias:
30
- - DELETE
31
- - /<<index>>/_alias/<<alias>>
32
-
33
- get_index_alias:
34
- - GET
35
- - /<<index>>/_alias/<<alias= '*' >>
36
-
37
-
38
-
39
- #-----------------------------------------------------------------------------#
40
- ### Analyze ###
41
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-analyze/
42
-
43
- # you can pass the text to analyze as the :data variable (or the param :text)
44
- # you can pass the parameters as the :params variable
45
- analyze_index:
46
- - GET
47
- - /<<index>>/_analyze
48
-
49
-
50
-
51
8
  #-----------------------------------------------------------------------------#
52
9
  ### Create Index ###
53
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index.html
54
10
 
55
- put_index: &create
11
+ put_index:
56
12
  - PUT
57
13
  - /<<index>>
58
14
  - settings:
59
15
  number_of_shards: <<number_of_shards= 5 >>
60
16
  number_of_replicas: <<number_of_replicas= 1 >>
61
-
62
- # aliased
63
- create_index: *create
17
+ - &create_index
18
+ REFERENCES:
19
+ group: indices_api
20
+ api_name: Create Index
21
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html
22
+ notice: "You can also pass the complete data structure as :data variable, so passing settings, mappings, warmers, aliases, ..."
23
+ aliases:
24
+ - :create_index
64
25
 
65
26
  post_index:
66
27
  - POST
@@ -68,243 +29,447 @@ post_index:
68
29
  - settings:
69
30
  number_of_shards: <<number_of_shards= 5 >>
70
31
  number_of_replicas: <<number_of_replicas= 1 >>
32
+ - *create_index
71
33
 
72
34
 
73
35
 
74
36
  #-----------------------------------------------------------------------------#
75
37
  ### Delete Index ###
76
- # http://www.elasticsearch.org/guide/reference/api/delete.html
77
38
 
78
39
  delete_index:
79
40
  - DELETE
80
41
  - /<<index>>
42
+ -
43
+ - REFERENCES:
44
+ group: indices_api
45
+ api_name: Delete Index
46
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html
47
+
48
+
49
+
50
+ #-----------------------------------------------------------------------------#
51
+ ### Get Index ###
52
+
53
+ get_index:
54
+ - GET
55
+ - /<<index>>/<<features= ~ >>
56
+ -
57
+ - REFERENCES:
58
+ group: indices_api
59
+ api_name: Get Index
60
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-index.html
61
+
62
+
63
+
64
+ #-----------------------------------------------------------------------------#
65
+ ### Indices Exists ###
66
+
67
+ indices_exists:
68
+ - HEAD
69
+ - /<<index>>
70
+ -
71
+ - REFERENCES:
72
+ group: indices_api
73
+ api_name: Indices Exists
74
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-exists.html
75
+ aliases:
76
+ - :index_exists
77
+ - :exist?
81
78
 
82
79
 
83
80
 
84
81
  #-----------------------------------------------------------------------------#
85
82
  ### Open/Close Index ###
86
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-open-close/
87
83
 
88
84
  close_index:
89
85
  - POST
90
86
  - /<<index>>/_close
87
+ -
88
+ - &open_close_index
89
+ REFERENCES:
90
+ group: indices_api
91
+ api_name: Open/Close Index
92
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html
91
93
 
92
94
  open_index:
93
95
  - POST
94
96
  - /<<index>>/_open
97
+ -
98
+ - *open_close_index
95
99
 
96
100
 
97
101
 
98
102
  #-----------------------------------------------------------------------------#
99
- ### Get Settings ###
100
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-get-settings.html
101
-
102
- get_index_settings: &get_index_settings
103
- - GET
104
- - /<<index>>/_settings
105
-
106
- # alias
107
- get_settings: *get_index_settings
103
+ ### Put Mappings ###
108
104
 
109
- # you should pass the settings structure as the :data variable
110
- put_index_settings:
105
+ put_index_mapping:
111
106
  - PUT
112
- - /<<index>>/_settings
107
+ - /<<index>>/_mapping/<<type>>
108
+ - <<type>>:
109
+ properties: <<properties>>
110
+ - REFERENCES:
111
+ group: indices_api
112
+ api_name: Put Mappings
113
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html
114
+ aliases:
115
+ - :put_mappings
113
116
 
114
117
 
115
118
 
116
119
  #-----------------------------------------------------------------------------#
117
120
  ### Get Mappings ###
118
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-get-mapping.html
119
121
 
120
- get_index_mapping: &get_index_mapping
122
+ get_index_mapping:
121
123
  - GET
122
- - /<<index>>/<<type>>/_mapping
123
-
124
- # alias
125
- get_mapping: *get_index_mapping
124
+ - /<<index>>/_mapping/<<type>>
125
+ -
126
+ - REFERENCES:
127
+ group: indices_api
128
+ api_name: Get Mappings
129
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html
126
130
 
127
131
 
128
132
 
129
133
  #-----------------------------------------------------------------------------#
130
- ### Put Mappings ###
131
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping.html
134
+ ### Get Field Mappings ###
135
+
136
+ get_field_mapping:
137
+ - GET
138
+ - /<<index>>/_mapping/<<type>>/field/<<field>>
139
+ -
140
+ - REFERENCES:
141
+ group: indices_api
142
+ api_name: Get Field Mappings
143
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html
132
144
 
133
- put_index_mapping: &put_index_mapping
134
- - PUT
135
- - /<<index>>/<<type>>/_mapping
136
- - <<type>>:
137
- properties: <<properties>>
138
145
 
139
- # alias
140
- put_mapping: *put_index_mapping
146
+
147
+ #-----------------------------------------------------------------------------#
148
+ ### Types Exists ###
149
+
150
+ types_exists: &types_exists
151
+ - HEAD
152
+ - /<<index>>/<<type>>
153
+ -
154
+ - REFERENCES:
155
+ group: indices_api
156
+ api_name: Types Exists
157
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-types-exists.html
158
+ aliases:
159
+ - :type_exists
141
160
 
142
161
 
143
162
 
144
163
  #-----------------------------------------------------------------------------#
145
164
  ### Delete Mappings ###
146
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-delete-mapping.html
147
165
 
148
166
  delete_index_mapping: &delete_index_mapping
149
167
  - DELETE
150
168
  - /<<index>>/<<type>>
151
-
152
- # alias
153
- delete_mapping: *delete_index_mapping
169
+ -
170
+ - REFERENCES:
171
+ group: indices_api
172
+ api_name: Delete Mappings
173
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-mapping.html
154
174
 
155
175
 
156
176
 
157
177
  #-----------------------------------------------------------------------------#
158
- ### Refresh ###
159
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-refresh.html
178
+ ### Index Aliases ###
160
179
 
161
- refresh_index:
180
+ # generic index aliases
181
+
182
+ get_index_aliases:
183
+ - GET
184
+ - /<<index>>/_aliases
185
+ -
186
+ - REFERENCES: &index_aliases
187
+ group: indices_api
188
+ api_name: Index Aliases
189
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html
190
+
191
+ post_index_aliases:
162
192
  - POST
163
- - /<<index>>/_refresh
193
+ - /_aliases
194
+ - actions: <<actions>>
195
+ - REFERENCES:
196
+ <<: *index_aliases
197
+ notice: "This is the generic interface allowing all the options. You can pass the :actions array or the aliases API structure as the :data variable."
164
198
 
165
199
 
200
+ # single index alias
166
201
 
167
- #-----------------------------------------------------------------------------#
168
- ### Optimize ###
169
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-optimize/
202
+ delete_index_alias:
203
+ - DELETE
204
+ - /<<index>>/_alias/<<alias>>
205
+ -
206
+ - REFERENCES: *index_aliases
170
207
 
171
- # you can pass the parameters as the :params variable
172
- optimize_index:
173
- - POST
174
- - /<<index>>/_optimize
208
+ get_index_alias:
209
+ - GET
210
+ - /<<index>>/_alias/<<alias= '*' >>
211
+ -
212
+ - REFERENCES: *index_aliases
213
+
214
+ put_index_alias:
215
+ - PUT
216
+ - /<<index>>/_alias/<<alias>>
217
+ -
218
+ - REFERENCES:
219
+ <<: *index_aliases
220
+ notice: "This is the single index alias. You can pass other options as the :data variable."
175
221
 
176
222
 
177
223
 
178
224
  #-----------------------------------------------------------------------------#
179
- ### Flush ###
180
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-flush/
225
+ ### Update Indices Settings ###
181
226
 
182
- # you can pass the parameters as the :params variable
183
- flush_index:
184
- - POST
185
- - /<<index>>/_flush
227
+ update_index_settings:
228
+ - PUT
229
+ - /<<index>>/_settings
230
+ -
231
+ - REFERENCES:
232
+ group: indices_api
233
+ api_name: Update Indices Settings
234
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html
235
+ notice: "You can pass the settings structure as the :data variable."
236
+ aliases:
237
+ - :put_index_settings
186
238
 
187
239
 
188
240
 
189
241
  #-----------------------------------------------------------------------------#
190
- ### Snapshot ###
191
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-gateway-snapshot/
242
+ ### Get Indices Settings ###
243
+
244
+ get_index_settings:
245
+ - GET
246
+ - /<<index>>/_settings
247
+ -
248
+ - REFERENCES:
249
+ group: indices_api
250
+ api_name: Get Indices Settings
251
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-settings.html
252
+ aliases:
253
+ - :get_settings
192
254
 
193
- gateway_snapshot:
194
- - POST
195
- - /<<index>>/_gateway/snapshot
196
255
 
197
256
 
198
257
 
199
258
  #-----------------------------------------------------------------------------#
200
- ### Update Settings ###
201
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-update-settings/
259
+ ### Analyze ###
202
260
 
203
- # you can pass the settings structure as the :data variable
204
- update_index_settings:
205
- - PUT
206
- - /<<index>>/_settings
261
+ analyze_index:
262
+ - GET
263
+ - /<<index>>/_analyze
264
+ -
265
+ - REFERENCES:
266
+ group: indices_api
267
+ api_name: Analyze
268
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-analyze.html
269
+ notice: "You can pass the text to analyze as the :data variable (or the param :text). You can pass the parameters as the :params variable."
207
270
 
208
271
 
209
272
 
210
273
  #-----------------------------------------------------------------------------#
211
- ### Templates ###
212
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-templates/
213
-
214
- # you must pass the data structure as :data variable
215
- put_index_template:
216
- - PUT
217
- - /_template/<<template>>
274
+ ### Index Templates ###
218
275
 
219
276
  delete_index_template:
220
277
  - DELETE
221
278
  - /_template/<<template>>
279
+ -
280
+ - REFERENCES: &index_template
281
+ group: indices_api
282
+ api_name: Index Templates
283
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html
222
284
 
223
285
  get_index_template:
224
286
  - GET
287
+ - /_template/<<template= ~ >>
288
+ -
289
+ - REFERENCES: *index_template
290
+
291
+ index_template_exists:
292
+ - HEAD
293
+ - /_template/<<template>>
294
+ -
295
+ - REFERENCES: *index_template
296
+
297
+ put_index_template:
298
+ - PUT
225
299
  - /_template/<<template>>
300
+ -
301
+ - REFERENCES:
302
+ <<: *index_template
303
+ notice: "You must pass the template structure as the :data variable."
226
304
 
227
305
 
228
306
 
229
307
  #-----------------------------------------------------------------------------#
230
308
  ### Warmers ###
231
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-warmers/
232
309
 
233
- # you must pass the warmer structure as the :data variable
310
+ delete_index_warmer:
311
+ - DELETE
312
+ - /<<index>>/_warmer/<<warmer>>
313
+ -
314
+ - REFERENCES: &warmers
315
+ group: indices_api
316
+ api_name: Warmers
317
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-warmers.html
318
+
234
319
  put_index_warmer:
235
320
  - PUT
236
321
  - /<<index>>/<<type>>/_warmer/<<warmer>>
237
-
238
- delete_index_warmer:
239
- - DELETE
240
- - /<<index>>/_warmer/<<warmer= ~ >>
322
+ -
323
+ - REFERENCES:
324
+ <<: *warmers
325
+ notice: "You must pass the warmer structure as the :data variable."
241
326
 
242
327
  get_index_warmer:
243
328
  - GET
244
329
  - /<<index>>/_warmer/<<warmer= ~ >>
330
+ -
331
+ - REFERENCES: *warmers
245
332
 
246
333
 
247
334
 
248
335
  #-----------------------------------------------------------------------------#
249
- ### Stats ###
250
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-stats.html
336
+ ### Status ###
251
337
 
252
- index_stats: &index_stats
338
+ index_status:
253
339
  - GET
254
- - /<<index>>/_stats/<<endpoint= ~ >>/<<names= ~ >>
255
-
256
- # alias
257
- stats: *index_stats
340
+ - /<<index>>/_status
341
+ -
342
+ - REFERENCES:
343
+ group: indices_api
344
+ api_name: Status
345
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-status.html
258
346
 
259
347
 
260
348
 
261
349
  #-----------------------------------------------------------------------------#
262
- ### Status ###
263
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-status/
350
+ ### Stats ###
264
351
 
265
- index_status:
352
+ index_stats:
266
353
  - GET
267
- - /<<index>>/_status
354
+ - /<<index>>/_stats/<<stats= ~ >>
355
+ -
356
+ - REFERENCES:
357
+ group: indices_api
358
+ api_name: Stats
359
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html
268
360
 
269
361
 
270
362
 
271
363
  #-----------------------------------------------------------------------------#
272
364
  ### Segments ###
273
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-segments/
274
365
 
275
366
  index_segments:
276
367
  - GET
277
368
  - /<<index>>/_segments
369
+ -
370
+ - REFERENCES:
371
+ group: indices_api
372
+ api_name: Segments
373
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-segments.html
374
+
375
+
376
+
377
+ #-----------------------------------------------------------------------------#
378
+ ### Recovery ###
379
+
380
+ index_recovery:
381
+ - GET
382
+ - /<<index>>/_recovery
383
+ -
384
+ - REFERENCES:
385
+ group: indices_api
386
+ api_name: Recovery
387
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-recovery.html
278
388
 
279
389
 
280
390
 
281
391
  #-----------------------------------------------------------------------------#
282
392
  ### Clear Cache ###
283
- #http://www.elasticsearch.org/guide/reference/api/admin-indices-clearcache/
284
393
 
285
394
  index_clearcache:
286
395
  - POST
287
396
  - /<<index>>/_cache/clear
397
+ -
398
+ - REFERENCES:
399
+ group: indices_api
400
+ api_name: Recovery
401
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clearcache.html
288
402
 
289
403
 
290
404
 
291
405
  #-----------------------------------------------------------------------------#
292
- ### Indices Exists ###
293
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-indices-exists.html
406
+ ### Flush ###
294
407
 
295
- indices_exists: &exist
296
- - HEAD
297
- - /<<index>>
408
+ flush_index:
409
+ - POST
410
+ - /<<index>>/_flush
411
+ -
412
+ - REFERENCES:
413
+ group: indices_api
414
+ api_name: Flush
415
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-flush.html
416
+ notice: "You can pass the parameters as the :params variable."
298
417
 
299
- # aliased
300
- exist?: *exist
418
+
419
+
420
+ #-----------------------------------------------------------------------------#
421
+ ### Synced Flush ###
422
+
423
+ synced_flush_index:
424
+ - POST
425
+ - /<<index>>/_flush/synced
426
+ -
427
+ - REFERENCES:
428
+ group: indices_api
429
+ api_name: Synced Flush
430
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-synced-flush.html
431
+ notice: "You can pass the parameters as the :params variable."
301
432
 
302
433
 
303
434
 
304
435
  #-----------------------------------------------------------------------------#
305
- ### Types Exists ###
306
- # http://www.elasticsearch.org/guide/reference/api/admin-indices-types-exists/
436
+ ### Refresh ###
307
437
 
308
- types_exists:
309
- - HEAD
310
- - /<<index>>/<<type>>
438
+ refresh_index:
439
+ - POST
440
+ - /<<index>>/_refresh
441
+ -
442
+ - REFERENCES:
443
+ group: indices_api
444
+ api_name: Refresh
445
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html
446
+
447
+
448
+
449
+ #-----------------------------------------------------------------------------#
450
+ ### Optimize ###
451
+
452
+ optimize_index:
453
+ - POST
454
+ - /<<index>>/_optimize
455
+ -
456
+ - REFERENCES:
457
+ group: indices_api
458
+ api_name: Optimize
459
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-optimize.html
460
+ notice: "You can pass the parameters as the :params variable."
461
+
462
+
463
+
464
+ #-----------------------------------------------------------------------------#
465
+ ### Upgrade ###
466
+
467
+ upgrade_index:
468
+ - POST
469
+ - /<<index>>/_upgrade
470
+ -
471
+ - REFERENCES:
472
+ group: indices_api
473
+ api_name: Upgrade
474
+ api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-upgrade.html
475
+ notice: "You can pass the parameters as the :params variable."