elasticsearch-api 6.8.3 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (334) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +17 -1
  3. data/LICENSE.txt +199 -10
  4. data/README.md +3 -3
  5. data/Rakefile +23 -6
  6. data/elasticsearch-api.gemspec +77 -43
  7. data/lib/elasticsearch/api/actions/abort_benchmark.rb +17 -4
  8. data/lib/elasticsearch/api/actions/benchmark.rb +18 -5
  9. data/lib/elasticsearch/api/actions/bulk.rb +18 -7
  10. data/lib/elasticsearch/api/actions/cat/aliases.rb +25 -11
  11. data/lib/elasticsearch/api/actions/cat/allocation.rb +26 -12
  12. data/lib/elasticsearch/api/actions/cat/count.rb +25 -11
  13. data/lib/elasticsearch/api/actions/cat/fielddata.rb +23 -11
  14. data/lib/elasticsearch/api/actions/cat/health.rb +26 -12
  15. data/lib/elasticsearch/api/actions/cat/help.rb +18 -6
  16. data/lib/elasticsearch/api/actions/cat/indices.rb +28 -13
  17. data/lib/elasticsearch/api/actions/cat/master.rb +25 -11
  18. data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +19 -7
  19. data/lib/elasticsearch/api/actions/cat/nodes.rb +25 -11
  20. data/lib/elasticsearch/api/actions/cat/params_registry.rb +19 -6
  21. data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +25 -11
  22. data/lib/elasticsearch/api/actions/cat/plugins.rb +21 -8
  23. data/lib/elasticsearch/api/actions/cat/recovery.rb +26 -11
  24. data/lib/elasticsearch/api/actions/cat/repositories.rb +18 -7
  25. data/lib/elasticsearch/api/actions/cat/segments.rb +22 -10
  26. data/lib/elasticsearch/api/actions/cat/shards.rb +26 -12
  27. data/lib/elasticsearch/api/actions/cat/snapshots.rb +19 -9
  28. data/lib/elasticsearch/api/actions/cat/tasks.rb +20 -6
  29. data/lib/elasticsearch/api/actions/cat/templates.rb +21 -8
  30. data/lib/elasticsearch/api/actions/cat/thread_pool.rb +33 -16
  31. data/lib/elasticsearch/api/actions/clear_scroll.rb +19 -15
  32. data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +20 -6
  33. data/lib/elasticsearch/api/actions/cluster/get_settings.rb +19 -7
  34. data/lib/elasticsearch/api/actions/cluster/health.rb +35 -13
  35. data/lib/elasticsearch/api/actions/cluster/params_registry.rb +19 -6
  36. data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +20 -6
  37. data/lib/elasticsearch/api/actions/cluster/put_settings.rb +19 -8
  38. data/lib/elasticsearch/api/actions/cluster/remote_info.rb +17 -10
  39. data/lib/elasticsearch/api/actions/cluster/reroute.rb +23 -10
  40. data/lib/elasticsearch/api/actions/cluster/state.rb +28 -18
  41. data/lib/elasticsearch/api/actions/cluster/stats.rb +21 -16
  42. data/lib/elasticsearch/api/actions/count.rb +18 -4
  43. data/lib/elasticsearch/api/actions/create.rb +16 -3
  44. data/lib/elasticsearch/api/actions/delete.rb +24 -19
  45. data/lib/elasticsearch/api/actions/delete_by_query.rb +18 -5
  46. data/lib/elasticsearch/api/actions/{delete_by_query_rethrottle.rb → delete_by_rethrottle.rb} +18 -5
  47. data/lib/elasticsearch/api/actions/delete_script.rb +18 -5
  48. data/lib/elasticsearch/api/actions/exists.rb +18 -6
  49. data/lib/elasticsearch/api/actions/exists_source.rb +16 -3
  50. data/lib/elasticsearch/api/actions/explain.rb +30 -10
  51. data/lib/elasticsearch/api/actions/field_caps.rb +18 -6
  52. data/lib/elasticsearch/api/actions/get.rb +20 -6
  53. data/lib/elasticsearch/api/actions/get_script.rb +22 -9
  54. data/lib/elasticsearch/api/actions/get_source.rb +32 -10
  55. data/lib/elasticsearch/api/actions/index.rb +37 -17
  56. data/lib/elasticsearch/api/actions/indices/analyze.rb +32 -6
  57. data/lib/elasticsearch/api/actions/indices/clear_cache.rb +20 -8
  58. data/lib/elasticsearch/api/actions/indices/close.rb +31 -11
  59. data/lib/elasticsearch/api/actions/indices/create.rb +36 -24
  60. data/lib/elasticsearch/api/actions/indices/delete.rb +21 -7
  61. data/lib/elasticsearch/api/actions/indices/delete_alias.rb +20 -8
  62. data/lib/elasticsearch/api/actions/indices/delete_template.rb +18 -6
  63. data/lib/elasticsearch/api/actions/indices/exists.rb +32 -12
  64. data/lib/elasticsearch/api/actions/indices/exists_alias.rb +30 -10
  65. data/lib/elasticsearch/api/actions/indices/exists_template.rb +20 -8
  66. data/lib/elasticsearch/api/actions/indices/exists_type.rb +31 -10
  67. data/lib/elasticsearch/api/actions/indices/flush.rb +26 -9
  68. data/lib/elasticsearch/api/actions/indices/flush_synced.rb +18 -5
  69. data/lib/elasticsearch/api/actions/indices/forcemerge.rb +18 -5
  70. data/lib/elasticsearch/api/actions/indices/freeze.rb +1 -4
  71. data/lib/elasticsearch/api/actions/indices/get.rb +21 -7
  72. data/lib/elasticsearch/api/actions/indices/get_alias.rb +18 -5
  73. data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +21 -7
  74. data/lib/elasticsearch/api/actions/indices/get_mapping.rb +21 -8
  75. data/lib/elasticsearch/api/actions/indices/get_settings.rb +18 -5
  76. data/lib/elasticsearch/api/actions/indices/get_template.rb +21 -7
  77. data/lib/elasticsearch/api/actions/indices/open.rb +18 -5
  78. data/lib/elasticsearch/api/actions/indices/params_registry.rb +19 -6
  79. data/lib/elasticsearch/api/actions/indices/put_alias.rb +18 -5
  80. data/lib/elasticsearch/api/actions/indices/put_mapping.rb +23 -11
  81. data/lib/elasticsearch/api/actions/indices/put_settings.rb +18 -5
  82. data/lib/elasticsearch/api/actions/indices/put_template.rb +21 -7
  83. data/lib/elasticsearch/api/actions/indices/recovery.rb +19 -6
  84. data/lib/elasticsearch/api/actions/indices/refresh.rb +18 -5
  85. data/lib/elasticsearch/api/actions/indices/rollover.rb +21 -7
  86. data/lib/elasticsearch/api/actions/indices/segments.rb +18 -5
  87. data/lib/elasticsearch/api/actions/indices/shard_stores.rb +18 -5
  88. data/lib/elasticsearch/api/actions/indices/shrink.rb +18 -7
  89. data/lib/elasticsearch/api/actions/indices/split.rb +19 -9
  90. data/lib/elasticsearch/api/actions/indices/stats.rb +18 -5
  91. data/lib/elasticsearch/api/actions/indices/unfreeze.rb +0 -4
  92. data/lib/elasticsearch/api/actions/indices/update_aliases.rb +18 -5
  93. data/lib/elasticsearch/api/actions/indices/upgrade.rb +18 -5
  94. data/lib/elasticsearch/api/actions/indices/validate_query.rb +18 -5
  95. data/lib/elasticsearch/api/actions/info.rb +16 -9
  96. data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +18 -5
  97. data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +20 -8
  98. data/lib/elasticsearch/api/actions/ingest/params_registry.rb +19 -6
  99. data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +0 -4
  100. data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +18 -5
  101. data/lib/elasticsearch/api/actions/ingest/simulate.rb +22 -9
  102. data/lib/elasticsearch/api/actions/mget.rb +17 -4
  103. data/lib/elasticsearch/api/actions/msearch.rb +21 -7
  104. data/lib/elasticsearch/api/actions/msearch_template.rb +21 -6
  105. data/lib/elasticsearch/api/actions/mtermvectors.rb +18 -5
  106. data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +20 -5
  107. data/lib/elasticsearch/api/actions/nodes/info.rb +44 -11
  108. data/lib/elasticsearch/api/actions/nodes/params_registry.rb +19 -6
  109. data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +19 -12
  110. data/lib/elasticsearch/api/actions/nodes/shutdown.rb +17 -4
  111. data/lib/elasticsearch/api/actions/nodes/stats.rb +18 -5
  112. data/lib/elasticsearch/api/actions/nodes/usage.rb +3 -7
  113. data/lib/elasticsearch/api/actions/params_registry.rb +19 -6
  114. data/lib/elasticsearch/api/actions/ping.rb +16 -9
  115. data/lib/elasticsearch/api/actions/put_script.rb +18 -6
  116. data/lib/elasticsearch/api/actions/rank_eval.rb +17 -4
  117. data/lib/elasticsearch/api/actions/reindex.rb +19 -5
  118. data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +17 -4
  119. data/lib/elasticsearch/api/actions/remote/info.rb +16 -3
  120. data/lib/elasticsearch/api/actions/render_search_template.rb +18 -5
  121. data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +16 -9
  122. data/lib/elasticsearch/api/actions/scroll.rb +19 -6
  123. data/lib/elasticsearch/api/actions/search.rb +72 -39
  124. data/lib/elasticsearch/api/actions/search_shards.rb +31 -11
  125. data/lib/elasticsearch/api/actions/search_template.rb +21 -6
  126. data/lib/elasticsearch/api/actions/snapshot/create.rb +20 -6
  127. data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +18 -5
  128. data/lib/elasticsearch/api/actions/snapshot/delete.rb +20 -7
  129. data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +19 -5
  130. data/lib/elasticsearch/api/actions/snapshot/get.rb +21 -7
  131. data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +23 -7
  132. data/lib/elasticsearch/api/actions/snapshot/params_registry.rb +19 -6
  133. data/lib/elasticsearch/api/actions/snapshot/restore.rb +18 -5
  134. data/lib/elasticsearch/api/actions/snapshot/status.rb +23 -8
  135. data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +18 -5
  136. data/lib/elasticsearch/api/actions/tasks/cancel.rb +18 -5
  137. data/lib/elasticsearch/api/actions/tasks/get.rb +18 -5
  138. data/lib/elasticsearch/api/actions/tasks/list.rb +18 -5
  139. data/lib/elasticsearch/api/actions/tasks/params_registry.rb +19 -6
  140. data/lib/elasticsearch/api/actions/termvectors.rb +33 -18
  141. data/lib/elasticsearch/api/actions/update.rb +61 -26
  142. data/lib/elasticsearch/api/actions/update_by_query.rb +18 -5
  143. data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +16 -3
  144. data/lib/elasticsearch/api/namespace/cat.rb +16 -3
  145. data/lib/elasticsearch/api/namespace/cluster.rb +16 -3
  146. data/lib/elasticsearch/api/namespace/common.rb +16 -3
  147. data/lib/elasticsearch/api/namespace/indices.rb +16 -3
  148. data/lib/elasticsearch/api/namespace/ingest.rb +16 -3
  149. data/lib/elasticsearch/api/namespace/nodes.rb +16 -3
  150. data/lib/elasticsearch/api/namespace/remote.rb +16 -3
  151. data/lib/elasticsearch/api/namespace/snapshot.rb +16 -3
  152. data/lib/elasticsearch/api/namespace/tasks.rb +16 -3
  153. data/lib/elasticsearch/api/utils.rb +16 -3
  154. data/lib/elasticsearch/api/version.rb +17 -4
  155. data/lib/elasticsearch/api.rb +18 -5
  156. data/lib/elasticsearch-api.rb +16 -3
  157. data/spec/elasticsearch/api/actions/abort_benchmark_spec.rb +16 -3
  158. data/spec/elasticsearch/api/actions/benchmark_spec.rb +16 -3
  159. data/spec/elasticsearch/api/actions/bulk_spec.rb +16 -3
  160. data/spec/elasticsearch/api/actions/cat/aliases_spec.rb +16 -3
  161. data/spec/elasticsearch/api/actions/cat/allocation_spec.rb +16 -3
  162. data/spec/elasticsearch/api/actions/cat/count_spec.rb +16 -3
  163. data/spec/elasticsearch/api/actions/cat/fielddata_spec.rb +16 -3
  164. data/spec/elasticsearch/api/actions/cat/health_spec.rb +16 -3
  165. data/spec/elasticsearch/api/actions/cat/help_spec.rb +16 -3
  166. data/spec/elasticsearch/api/actions/cat/indices_spec.rb +16 -3
  167. data/spec/elasticsearch/api/actions/cat/master_spec.rb +16 -3
  168. data/spec/elasticsearch/api/actions/cat/nodeattrs_spec.rb +16 -3
  169. data/spec/elasticsearch/api/actions/cat/nodes_spec.rb +16 -3
  170. data/spec/elasticsearch/api/actions/cat/pending_tasks_spec.rb +16 -3
  171. data/spec/elasticsearch/api/actions/cat/plugins_spec.rb +16 -3
  172. data/spec/elasticsearch/api/actions/cat/recovery_spec.rb +16 -3
  173. data/spec/elasticsearch/api/actions/cat/repositories_spec.rb +16 -3
  174. data/spec/elasticsearch/api/actions/cat/segments_spec.rb +33 -4
  175. data/spec/elasticsearch/api/actions/cat/shards_spec.rb +16 -3
  176. data/spec/elasticsearch/api/actions/cat/snapshot_spec.rb +16 -3
  177. data/spec/elasticsearch/api/actions/cat/tasks_spec.rb +16 -3
  178. data/spec/elasticsearch/api/actions/cat/templates_spec.rb +16 -3
  179. data/spec/elasticsearch/api/actions/cat/thread_pool_spec.rb +16 -3
  180. data/spec/elasticsearch/api/actions/clear_scroll_spec.rb +16 -3
  181. data/spec/elasticsearch/api/actions/cluster/allocation_explain_spec.rb +16 -3
  182. data/spec/elasticsearch/api/actions/cluster/get_settings_spec.rb +16 -3
  183. data/spec/elasticsearch/api/actions/cluster/health_spec.rb +16 -3
  184. data/spec/elasticsearch/api/actions/cluster/pending_tasks_spec.rb +16 -3
  185. data/spec/elasticsearch/api/actions/cluster/put_settings_spec.rb +16 -3
  186. data/spec/elasticsearch/api/actions/cluster/remote_info_spec.rb +16 -3
  187. data/spec/elasticsearch/api/actions/cluster/reroute_spec.rb +16 -3
  188. data/spec/elasticsearch/api/actions/cluster/state_spec.rb +16 -3
  189. data/spec/elasticsearch/api/actions/cluster/stats_spec.rb +16 -20
  190. data/spec/elasticsearch/api/actions/count_spec.rb +16 -3
  191. data/spec/elasticsearch/api/actions/create_document_spec.rb +16 -3
  192. data/spec/elasticsearch/api/actions/delete_by_query_spec.rb +16 -3
  193. data/spec/elasticsearch/api/actions/delete_document_spec.rb +16 -9
  194. data/spec/elasticsearch/api/actions/delete_script_spec.rb +16 -3
  195. data/spec/elasticsearch/api/actions/exists_document_spec.rb +16 -3
  196. data/spec/elasticsearch/api/actions/explain_document_spec.rb +17 -10
  197. data/spec/elasticsearch/api/actions/field_caps_spec.rb +16 -3
  198. data/spec/elasticsearch/api/actions/get_document_source_spec.rb +17 -4
  199. data/spec/elasticsearch/api/actions/get_document_spec.rb +17 -4
  200. data/spec/elasticsearch/api/actions/get_script_spec.rb +22 -16
  201. data/spec/elasticsearch/api/actions/hashie_spec.rb +16 -3
  202. data/spec/elasticsearch/api/actions/index_document_spec.rb +16 -9
  203. data/spec/elasticsearch/api/actions/indices/analyze_spec.rb +16 -3
  204. data/spec/elasticsearch/api/actions/indices/clear_cache_spec.rb +19 -6
  205. data/spec/elasticsearch/api/actions/indices/close_spec.rb +16 -3
  206. data/spec/elasticsearch/api/actions/indices/create_spec.rb +16 -3
  207. data/spec/elasticsearch/api/actions/indices/delete_alias_spec.rb +16 -3
  208. data/spec/elasticsearch/api/actions/indices/delete_spec.rb +16 -3
  209. data/spec/elasticsearch/api/actions/indices/delete_template_spec.rb +16 -3
  210. data/spec/elasticsearch/api/actions/indices/exists_alias_spec.rb +16 -3
  211. data/spec/elasticsearch/api/actions/indices/exists_spec.rb +16 -3
  212. data/spec/elasticsearch/api/actions/indices/exists_template_spec.rb +16 -3
  213. data/spec/elasticsearch/api/actions/indices/exists_type_spec.rb +16 -3
  214. data/spec/elasticsearch/api/actions/indices/flush_spec.rb +16 -3
  215. data/spec/elasticsearch/api/actions/indices/flush_synced_spec.rb +16 -3
  216. data/spec/elasticsearch/api/actions/indices/forcemerge_spec.rb +16 -3
  217. data/spec/elasticsearch/api/actions/indices/freeze_spec.rb +68 -0
  218. data/spec/elasticsearch/api/actions/indices/get_alias_spec.rb +16 -3
  219. data/spec/elasticsearch/api/actions/indices/get_field_mapping_spec.rb +16 -3
  220. data/spec/elasticsearch/api/actions/indices/get_mapping_spec.rb +16 -3
  221. data/spec/elasticsearch/api/actions/indices/get_settings_spec.rb +16 -3
  222. data/spec/elasticsearch/api/actions/indices/get_spec.rb +16 -3
  223. data/spec/elasticsearch/api/actions/indices/open_spec.rb +16 -3
  224. data/spec/elasticsearch/api/actions/indices/put_alias_spec.rb +16 -3
  225. data/spec/elasticsearch/api/actions/indices/put_mapping_spec.rb +16 -3
  226. data/spec/elasticsearch/api/actions/indices/put_settings_spec.rb +31 -3
  227. data/spec/elasticsearch/api/actions/indices/put_template_spec.rb +16 -3
  228. data/spec/elasticsearch/api/actions/indices/recovery_spec.rb +16 -3
  229. data/spec/elasticsearch/api/actions/indices/refresh_spec.rb +16 -3
  230. data/spec/elasticsearch/api/actions/indices/rollover_spec.rb +16 -3
  231. data/spec/elasticsearch/api/actions/indices/segments_spec.rb +16 -3
  232. data/spec/elasticsearch/api/actions/indices/shard_stores_spec.rb +16 -3
  233. data/spec/elasticsearch/api/actions/indices/shrink_spec.rb +16 -3
  234. data/spec/elasticsearch/api/actions/indices/split_spec.rb +16 -3
  235. data/spec/elasticsearch/api/actions/indices/stats_spec.rb +125 -0
  236. data/spec/elasticsearch/api/actions/indices/unfreeze_spec.rb +68 -0
  237. data/spec/elasticsearch/api/actions/indices/update_aliases_spec.rb +16 -3
  238. data/spec/elasticsearch/api/actions/indices/upgrade_spec.rb +16 -3
  239. data/spec/elasticsearch/api/actions/indices/validate_query_spec.rb +16 -3
  240. data/spec/elasticsearch/api/actions/info_spec.rb +16 -3
  241. data/spec/elasticsearch/api/actions/ingest/delete_pipeline_spec.rb +16 -3
  242. data/spec/elasticsearch/api/actions/ingest/get_pipeline_spec.rb +16 -3
  243. data/spec/elasticsearch/api/actions/ingest/put_pipeline_spec.rb +16 -3
  244. data/spec/elasticsearch/api/actions/ingest/simulate_spec.rb +16 -3
  245. data/spec/elasticsearch/api/actions/json_builders_spec.rb +16 -3
  246. data/spec/elasticsearch/api/actions/mget_spec.rb +16 -3
  247. data/spec/elasticsearch/api/actions/msearch_spec.rb +16 -3
  248. data/spec/elasticsearch/api/actions/msearch_template_spec.rb +16 -3
  249. data/spec/elasticsearch/api/actions/mtermvectors_spec.rb +16 -3
  250. data/spec/elasticsearch/api/actions/nodes/hot_threads_spec.rb +16 -3
  251. data/spec/elasticsearch/api/actions/nodes/info_spec.rb +16 -3
  252. data/spec/elasticsearch/api/actions/nodes/reload_secure_settings_spec.rb +16 -3
  253. data/spec/elasticsearch/api/actions/nodes/shutdown_spec.rb +16 -3
  254. data/spec/elasticsearch/api/actions/nodes/stats_spec.rb +16 -3
  255. data/spec/elasticsearch/api/actions/ping_spec.rb +16 -3
  256. data/spec/elasticsearch/api/actions/put_script_spec.rb +16 -3
  257. data/spec/elasticsearch/api/actions/reindex_spec.rb +16 -3
  258. data/spec/elasticsearch/api/actions/remote/info_spec.rb +16 -3
  259. data/spec/elasticsearch/api/actions/render_search_template_spec.rb +16 -3
  260. data/spec/elasticsearch/api/actions/scoll_spec.rb +16 -3
  261. data/spec/elasticsearch/api/actions/search_shards_spec.rb +16 -3
  262. data/spec/elasticsearch/api/actions/search_spec.rb +31 -3
  263. data/spec/elasticsearch/api/actions/search_template_spec.rb +16 -3
  264. data/spec/elasticsearch/api/actions/snapshot/create_repository_spec.rb +16 -3
  265. data/spec/elasticsearch/api/actions/snapshot/create_spec.rb +16 -3
  266. data/spec/elasticsearch/api/actions/snapshot/delete_repository_spec.rb +16 -3
  267. data/spec/elasticsearch/api/actions/snapshot/delete_spec.rb +16 -3
  268. data/spec/elasticsearch/api/actions/snapshot/get_repository_spec.rb +16 -3
  269. data/spec/elasticsearch/api/actions/snapshot/get_spec.rb +16 -3
  270. data/spec/elasticsearch/api/actions/snapshot/restore_spec.rb +16 -3
  271. data/spec/elasticsearch/api/actions/snapshot/status_spec.rb +16 -3
  272. data/spec/elasticsearch/api/actions/snapshot/verify_repository_spec.rb +16 -3
  273. data/spec/elasticsearch/api/actions/tasks/cancel_spec.rb +16 -3
  274. data/spec/elasticsearch/api/actions/tasks/get_spec.rb +16 -3
  275. data/spec/elasticsearch/api/actions/tasks/list_spec.rb +16 -3
  276. data/spec/elasticsearch/api/actions/termvectors_spec.rb +16 -9
  277. data/spec/elasticsearch/api/actions/update_by_query_spec.rb +16 -3
  278. data/spec/elasticsearch/api/actions/update_document_spec.rb +16 -9
  279. data/spec/elasticsearch/api/api_spec.rb +16 -3
  280. data/spec/elasticsearch/api/client_spec.rb +16 -3
  281. data/spec/elasticsearch/api/utils_spec.rb +16 -3
  282. data/spec/spec_helper.rb +16 -14
  283. data/test/integration/yaml_test_runner.rb +84 -42
  284. data/test/test_helper.rb +86 -14
  285. data/utils/Gemfile +17 -0
  286. data/utils/Thorfile +17 -0
  287. data/utils/thor/generate_api.rb +16 -3
  288. data/utils/thor/generate_source.rb +22 -6
  289. data/utils/thor/lister.rb +16 -3
  290. data/utils/thor/templates/ruby/method.erb +22 -7
  291. data/utils/thor/templates/ruby/test.erb +17 -0
  292. data/utils/thor/templates/ruby/test_helper.rb +16 -4
  293. metadata +54 -120
  294. data/lib/elasticsearch/api/actions/count_percolate.rb +0 -86
  295. data/lib/elasticsearch/api/actions/delete_template.rb +0 -25
  296. data/lib/elasticsearch/api/actions/field_stats.rb +0 -40
  297. data/lib/elasticsearch/api/actions/get_template.rb +0 -31
  298. data/lib/elasticsearch/api/actions/indices/delete_mapping.rb +0 -30
  299. data/lib/elasticsearch/api/actions/indices/delete_warmer.rb +0 -36
  300. data/lib/elasticsearch/api/actions/indices/get_aliases.rb +0 -41
  301. data/lib/elasticsearch/api/actions/indices/get_warmer.rb +0 -66
  302. data/lib/elasticsearch/api/actions/indices/optimize.rb +0 -81
  303. data/lib/elasticsearch/api/actions/indices/put_warmer.rb +0 -69
  304. data/lib/elasticsearch/api/actions/indices/seal.rb +0 -28
  305. data/lib/elasticsearch/api/actions/indices/snapshot_index.rb +0 -48
  306. data/lib/elasticsearch/api/actions/indices/status.rb +0 -67
  307. data/lib/elasticsearch/api/actions/list_benchmarks.rb +0 -31
  308. data/lib/elasticsearch/api/actions/mlt.rb +0 -134
  309. data/lib/elasticsearch/api/actions/mpercolate.rb +0 -66
  310. data/lib/elasticsearch/api/actions/percolate.rb +0 -77
  311. data/lib/elasticsearch/api/actions/put_template.rb +0 -29
  312. data/lib/elasticsearch/api/actions/search_exists.rb +0 -67
  313. data/lib/elasticsearch/api/actions/suggest.rb +0 -53
  314. data/spec/elasticsearch/api/actions/count_percolate_spec.rb +0 -21
  315. data/spec/elasticsearch/api/actions/delete_template_spec.rb +0 -21
  316. data/spec/elasticsearch/api/actions/field_stats_spec.rb +0 -21
  317. data/spec/elasticsearch/api/actions/get_template_spec.rb +0 -56
  318. data/spec/elasticsearch/api/actions/indices/delete_mapping_spec.rb +0 -81
  319. data/spec/elasticsearch/api/actions/indices/delete_warmer_spec.rb +0 -90
  320. data/spec/elasticsearch/api/actions/indices/get_aliases_spec.rb +0 -59
  321. data/spec/elasticsearch/api/actions/indices/get_template_spec.rb +0 -63
  322. data/spec/elasticsearch/api/actions/indices/get_warmer_spec.rb +0 -52
  323. data/spec/elasticsearch/api/actions/indices/optimize_spec.rb +0 -67
  324. data/spec/elasticsearch/api/actions/indices/put_warmer_spec.rb +0 -105
  325. data/spec/elasticsearch/api/actions/indices/seal_spec.rb +0 -22
  326. data/spec/elasticsearch/api/actions/indices/snapshot_index_spec.rb +0 -93
  327. data/spec/elasticsearch/api/actions/indices/status_spec.rb +0 -96
  328. data/spec/elasticsearch/api/actions/list_benchmarks_spec.rb +0 -21
  329. data/spec/elasticsearch/api/actions/mlt_spec.rb +0 -134
  330. data/spec/elasticsearch/api/actions/mpercolate_spec.rb +0 -53
  331. data/spec/elasticsearch/api/actions/put_template_spec.rb +0 -21
  332. data/spec/elasticsearch/api/actions/rank_eval_spec.rb +0 -113
  333. data/spec/elasticsearch/api/actions/search_exists_spec.rb +0 -67
  334. data/spec/elasticsearch/api/actions/suggest_spec.rb +0 -81
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -16,7 +29,7 @@ module Elasticsearch
16
29
  # client.indices.put_mapping index: 'myindex', type: 'mytype', body: {
17
30
  # mytype: {
18
31
  # properties: {
19
- # title: { type: 'string', analyzer: 'snowball' }
32
+ # title: { type: 'text', analyzer: 'snowball' }
20
33
  # }
21
34
  # }
22
35
  # }
@@ -30,16 +43,16 @@ module Elasticsearch
30
43
  # }
31
44
  #
32
45
  # @option arguments [List] :index A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices.
33
- # @option arguments [String] :type The name of the document type (*Required*)
46
+ # @option arguments [String] :type The name of the document type
34
47
  # @option arguments [Hash] :body The mapping definition (*Required*)
48
+ # @option arguments [Boolean] :include_type_name Whether a type should be expected in the body of the mappings.
35
49
  # @option arguments [Time] :timeout Explicit operation timeout
36
50
  # @option arguments [Time] :master_timeout Specify timeout for connection to master
37
51
  # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
38
52
  # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
39
53
  # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
40
- # @option arguments [Boolean] :update_all_types Whether to update the mapping for all fields with the same name across all types or not
41
54
  #
42
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html
55
+ # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping/
43
56
  #
44
57
  def put_mapping(arguments={})
45
58
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
@@ -54,15 +67,14 @@ module Elasticsearch
54
67
 
55
68
  # Register this action with its valid params when the module is loaded.
56
69
  #
57
- # @since 6.2.0
70
+ # @since 6.1.1
58
71
  ParamsRegistry.register(:put_mapping, [
72
+ :include_type_name,
59
73
  :timeout,
60
74
  :master_timeout,
61
75
  :ignore_unavailable,
62
76
  :allow_no_indices,
63
- :expand_wildcards,
64
- :update_all_types,
65
- :include_type_name ].freeze)
77
+ :expand_wildcards ].freeze)
66
78
  end
67
79
  end
68
80
  end
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -38,7 +51,7 @@ module Elasticsearch
38
51
  # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
39
52
  # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
40
53
  #
41
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html
54
+ # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-update-settings/
42
55
  #
43
56
  def put_settings(arguments={})
44
57
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
@@ -52,7 +65,7 @@ module Elasticsearch
52
65
 
53
66
  # Register this action with its valid params when the module is loaded.
54
67
  #
55
- # @since 6.2.0
68
+ # @since 6.1.1
56
69
  ParamsRegistry.register(:put_settings, [
57
70
  :master_timeout,
58
71
  :timeout,
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -16,13 +29,14 @@ module Elasticsearch
16
29
  #
17
30
  # @option arguments [String] :name The name of the template (*Required*)
18
31
  # @option arguments [Hash] :body The template definition (*Required*)
32
+ # @option arguments [Boolean] :include_type_name Whether a type should be returned in the body of the mappings.
19
33
  # @option arguments [Number] :order The order for this template when merging multiple matching ones (higher numbers are merged later, overriding the lower numbers)
20
34
  # @option arguments [Boolean] :create Whether the index template should only be added if new or can also replace an existing one
21
35
  # @option arguments [Time] :timeout Explicit operation timeout
22
36
  # @option arguments [Time] :master_timeout Specify timeout for connection to master
23
37
  # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
24
38
  #
25
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html
39
+ # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-templates/
26
40
  #
27
41
  def put_template(arguments={})
28
42
  raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
@@ -38,14 +52,14 @@ module Elasticsearch
38
52
 
39
53
  # Register this action with its valid params when the module is loaded.
40
54
  #
41
- # @since 6.2.0
55
+ # @since 6.1.1
42
56
  ParamsRegistry.register(:put_template, [
57
+ :include_type_name,
43
58
  :order,
44
59
  :create,
45
60
  :timeout,
46
61
  :master_timeout,
47
- :flat_settings,
48
- :include_type_name ].freeze)
62
+ :flat_settings ].freeze)
49
63
  end
50
64
  end
51
65
  end
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -25,7 +38,7 @@ module Elasticsearch
25
38
  # @option arguments [Boolean] :detailed Whether to display detailed information about shard recovery
26
39
  # @option arguments [Boolean] :active_only Display only those recoveries that are currently on-going
27
40
  #
28
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-recovery.html
41
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/indices-recovery.html
29
42
  #
30
43
  def recovery(arguments={})
31
44
  method = HTTP_GET
@@ -38,10 +51,10 @@ module Elasticsearch
38
51
 
39
52
  # Register this action with its valid params when the module is loaded.
40
53
  #
41
- # @since 6.2.0
54
+ # @since 6.1.1
42
55
  ParamsRegistry.register(:recovery, [
43
56
  :detailed,
44
- :active_only ].freeze)
57
+ :active_only ].freeze)
45
58
  end
46
59
  end
47
60
  end
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -27,7 +40,7 @@ module Elasticsearch
27
40
  # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
28
41
  # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
29
42
  #
30
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html
43
+ # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-refresh/
31
44
  #
32
45
  def refresh(arguments={})
33
46
  method = HTTP_POST
@@ -41,7 +54,7 @@ module Elasticsearch
41
54
 
42
55
  # Register this action with its valid params when the module is loaded.
43
56
  #
44
- # @since 6.2.0
57
+ # @since 6.1.1
45
58
  ParamsRegistry.register(:refresh, [
46
59
  :ignore_unavailable,
47
60
  :allow_no_indices,
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -13,12 +26,13 @@ module Elasticsearch
13
26
  # @option arguments [String] :alias The name of the alias to rollover (*Required*)
14
27
  # @option arguments [String] :new_index The name of the rollover index
15
28
  # @option arguments [Hash] :body The conditions that needs to be met for executing rollover
29
+ # @option arguments [Boolean] :include_type_name Whether a type should be included in the body of the mappings.
16
30
  # @option arguments [Time] :timeout Explicit operation timeout
17
31
  # @option arguments [Boolean] :dry_run If set to true the rollover action will only be validated but not actually performed even if a condition matches. The default is false
18
32
  # @option arguments [Time] :master_timeout Specify timeout for connection to master
19
33
  # @option arguments [String] :wait_for_active_shards Set the number of active shards to wait for on the newly created rollover index before the operation returns.
20
34
  #
21
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-rollover-index.html
35
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html
22
36
  #
23
37
  def rollover(arguments={})
24
38
  raise ArgumentError, "Required argument 'alias' missing" unless arguments[:alias]
@@ -35,13 +49,13 @@ module Elasticsearch
35
49
 
36
50
  # Register this action with its valid params when the module is loaded.
37
51
  #
38
- # @since 6.2.0
52
+ # @since 6.1.1
39
53
  ParamsRegistry.register(:rollover, [
54
+ :include_type_name,
40
55
  :timeout,
41
56
  :dry_run,
42
57
  :master_timeout,
43
- :wait_for_active_shards,
44
- :include_type_name ].freeze)
58
+ :wait_for_active_shards ].freeze)
45
59
  end
46
60
  end
47
61
  end
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -18,7 +31,7 @@ module Elasticsearch
18
31
  # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
19
32
  # @option arguments [Boolean] :verbose Includes detailed memory usage by Lucene.
20
33
  #
21
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-segments.html
34
+ # @see http://elasticsearch.org/guide/reference/api/admin-indices-segments/
22
35
  #
23
36
  def segments(arguments={})
24
37
  method = HTTP_GET
@@ -32,7 +45,7 @@ module Elasticsearch
32
45
 
33
46
  # Register this action with its valid params when the module is loaded.
34
47
  #
35
- # @since 6.2.0
48
+ # @since 6.1.1
36
49
  ParamsRegistry.register(:segments, [
37
50
  :ignore_unavailable,
38
51
  :allow_no_indices,
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -15,7 +28,7 @@ module Elasticsearch
15
28
  # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
16
29
  # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
17
30
  #
18
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-shards-stores.html
31
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html
19
32
  #
20
33
  def shard_stores(arguments={})
21
34
  method = 'GET'
@@ -28,7 +41,7 @@ module Elasticsearch
28
41
 
29
42
  # Register this action with its valid params when the module is loaded.
30
43
  #
31
- # @since 6.2.0
44
+ # @since 6.1.1
32
45
  ParamsRegistry.register(:shard_stores, [
33
46
  :status,
34
47
  :ignore_unavailable,
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -12,12 +25,11 @@ module Elasticsearch
12
25
  # @option arguments [String] :index The name of the source index to shrink (*Required*)
13
26
  # @option arguments [String] :target The name of the target index to shrink into (*Required*)
14
27
  # @option arguments [Hash] :body The configuration for the target index (`settings` and `aliases`)
15
- # @option arguments [Boolean] :copy_settings whether or not to copy settings from the source index (defaults to false)
16
28
  # @option arguments [Time] :timeout Explicit operation timeout
17
29
  # @option arguments [Time] :master_timeout Specify timeout for connection to master
18
30
  # @option arguments [String] :wait_for_active_shards Set the number of active shards to wait for on the shrunken index before the operation returns.
19
31
  #
20
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-shrink-index.html
32
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html
21
33
  #
22
34
  def shrink(arguments={})
23
35
  raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
@@ -36,9 +48,8 @@ module Elasticsearch
36
48
 
37
49
  # Register this action with its valid params when the module is loaded.
38
50
  #
39
- # @since 6.2.0
51
+ # @since 6.1.1
40
52
  ParamsRegistry.register(:shrink, [
41
- :copy_settings,
42
53
  :timeout,
43
54
  :master_timeout,
44
55
  :wait_for_active_shards ].freeze)
@@ -1,24 +1,35 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
7
20
  module Indices
8
21
  module Actions
9
22
 
10
- # The split index API allows you to split an existing index into a new index,
11
- # where each original primary shard is split into two or more primary shards in the new index.
23
+ # The split index API allows you to split an existing index into a new index with multiple of its primary shards.
12
24
  #
13
25
  # @option arguments [String] :index The name of the source index to split (*Required*)
14
26
  # @option arguments [String] :target The name of the target index to split into (*Required*)
15
27
  # @option arguments [Hash] :body The configuration for the target index (`settings` and `aliases`)
16
- # @option arguments [Boolean] :copy_settings whether or not to copy settings from the source index (defaults to false)
17
28
  # @option arguments [Time] :timeout Explicit operation timeout
18
29
  # @option arguments [Time] :master_timeout Specify timeout for connection to master
19
30
  # @option arguments [String] :wait_for_active_shards Set the number of active shards to wait for on the shrunken index before the operation returns.
20
31
  #
21
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-split-index.html
32
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html
22
33
  #
23
34
  def split(arguments={})
24
35
  raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
@@ -37,9 +48,8 @@ module Elasticsearch
37
48
 
38
49
  # Register this action with its valid params when the module is loaded.
39
50
  #
40
- # @since 6.2.0
51
+ # @since 6.1.1
41
52
  ParamsRegistry.register(:split, [
42
- :copy_settings,
43
53
  :timeout,
44
54
  :master_timeout,
45
55
  :wait_for_active_shards ].freeze)
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -95,7 +108,7 @@ module Elasticsearch
95
108
 
96
109
  # Register this action with its valid params when the module is loaded.
97
110
  #
98
- # @since 6.2.0
111
+ # @since 6.1.1
99
112
  ParamsRegistry.register(:stats_params, [
100
113
  :fields,
101
114
  :completion_fields,
@@ -111,7 +124,7 @@ module Elasticsearch
111
124
 
112
125
  # Register this action with its valid parts when the module is loaded.
113
126
  #
114
- # @since 6.2.0
127
+ # @since 6.1.1
115
128
  ParamsRegistry.register(:stats_parts, [
116
129
  :docs,
117
130
  :fielddata,
@@ -1,7 +1,3 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
4
-
5
1
  module Elasticsearch
6
2
  module API
7
3
  module Indices
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -33,7 +46,7 @@ module Elasticsearch
33
46
  # @option arguments [Time] :timeout Request timeout
34
47
  # @option arguments [Time] :master_timeout Specify timeout for connection to master
35
48
  #
36
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html
49
+ # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/
37
50
  #
38
51
  def update_aliases(arguments={})
39
52
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
@@ -48,7 +61,7 @@ module Elasticsearch
48
61
 
49
62
  # Register this action with its valid params when the module is loaded.
50
63
  #
51
- # @since 6.2.0
64
+ # @since 6.1.1
52
65
  ParamsRegistry.register(:update_aliases, [
53
66
  :timeout,
54
67
  :master_timeout ].freeze)
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -16,7 +29,7 @@ module Elasticsearch
16
29
  # @option arguments [Boolean] :wait_for_completion Specify whether the request should block until the all segments are upgraded (default: false)
17
30
  # @option arguments [Boolean] :only_ancient_segments If true, only ancient (an older Lucene major release) segments will be upgraded
18
31
  #
19
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-upgrade.html
32
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/indices-upgrade.html
20
33
  #
21
34
  def upgrade(arguments={})
22
35
  method = HTTP_POST
@@ -29,7 +42,7 @@ module Elasticsearch
29
42
 
30
43
  # Register this action with its valid params when the module is loaded.
31
44
  #
32
- # @since 6.2.0
45
+ # @since 6.1.1
33
46
  ParamsRegistry.register(:upgrade, [
34
47
  :allow_no_indices,
35
48
  :expand_wildcards,