elasticsearch-api 6.8.1 → 6.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -0
  3. data/Rakefile +1 -1
  4. data/elasticsearch-api.gemspec +43 -60
  5. data/lib/elasticsearch-api.rb +4 -0
  6. data/lib/elasticsearch/api.rb +6 -1
  7. data/lib/elasticsearch/api/actions/abort_benchmark.rb +4 -0
  8. data/lib/elasticsearch/api/actions/benchmark.rb +4 -0
  9. data/lib/elasticsearch/api/actions/bulk.rb +4 -0
  10. data/lib/elasticsearch/api/actions/cat/aliases.rb +4 -0
  11. data/lib/elasticsearch/api/actions/cat/allocation.rb +4 -0
  12. data/lib/elasticsearch/api/actions/cat/count.rb +4 -0
  13. data/lib/elasticsearch/api/actions/cat/fielddata.rb +4 -0
  14. data/lib/elasticsearch/api/actions/cat/health.rb +4 -0
  15. data/lib/elasticsearch/api/actions/cat/help.rb +4 -0
  16. data/lib/elasticsearch/api/actions/cat/indices.rb +4 -0
  17. data/lib/elasticsearch/api/actions/cat/master.rb +4 -0
  18. data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +4 -0
  19. data/lib/elasticsearch/api/actions/cat/nodes.rb +4 -0
  20. data/lib/elasticsearch/api/actions/cat/params_registry.rb +4 -0
  21. data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +4 -0
  22. data/lib/elasticsearch/api/actions/cat/plugins.rb +4 -0
  23. data/lib/elasticsearch/api/actions/cat/recovery.rb +4 -0
  24. data/lib/elasticsearch/api/actions/cat/repositories.rb +4 -0
  25. data/lib/elasticsearch/api/actions/cat/segments.rb +4 -0
  26. data/lib/elasticsearch/api/actions/cat/shards.rb +4 -0
  27. data/lib/elasticsearch/api/actions/cat/snapshots.rb +4 -0
  28. data/lib/elasticsearch/api/actions/cat/tasks.rb +4 -0
  29. data/lib/elasticsearch/api/actions/cat/templates.rb +4 -0
  30. data/lib/elasticsearch/api/actions/cat/thread_pool.rb +4 -0
  31. data/lib/elasticsearch/api/actions/clear_scroll.rb +4 -0
  32. data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +4 -0
  33. data/lib/elasticsearch/api/actions/cluster/get_settings.rb +4 -0
  34. data/lib/elasticsearch/api/actions/cluster/health.rb +4 -0
  35. data/lib/elasticsearch/api/actions/cluster/params_registry.rb +4 -0
  36. data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +4 -0
  37. data/lib/elasticsearch/api/actions/cluster/put_settings.rb +4 -0
  38. data/lib/elasticsearch/api/actions/cluster/remote_info.rb +4 -0
  39. data/lib/elasticsearch/api/actions/cluster/reroute.rb +4 -0
  40. data/lib/elasticsearch/api/actions/cluster/state.rb +4 -0
  41. data/lib/elasticsearch/api/actions/cluster/stats.rb +4 -0
  42. data/lib/elasticsearch/api/actions/count.rb +4 -0
  43. data/lib/elasticsearch/api/actions/count_percolate.rb +4 -0
  44. data/lib/elasticsearch/api/actions/create.rb +4 -0
  45. data/lib/elasticsearch/api/actions/delete.rb +4 -0
  46. data/lib/elasticsearch/api/actions/delete_by_query.rb +4 -0
  47. data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +4 -0
  48. data/lib/elasticsearch/api/actions/delete_script.rb +4 -0
  49. data/lib/elasticsearch/api/actions/delete_template.rb +4 -0
  50. data/lib/elasticsearch/api/actions/exists.rb +4 -0
  51. data/lib/elasticsearch/api/actions/exists_source.rb +4 -0
  52. data/lib/elasticsearch/api/actions/explain.rb +4 -0
  53. data/lib/elasticsearch/api/actions/field_caps.rb +4 -0
  54. data/lib/elasticsearch/api/actions/field_stats.rb +4 -0
  55. data/lib/elasticsearch/api/actions/get.rb +4 -0
  56. data/lib/elasticsearch/api/actions/get_script.rb +4 -0
  57. data/lib/elasticsearch/api/actions/get_source.rb +4 -0
  58. data/lib/elasticsearch/api/actions/get_template.rb +4 -0
  59. data/lib/elasticsearch/api/actions/index.rb +4 -0
  60. data/lib/elasticsearch/api/actions/indices/analyze.rb +4 -0
  61. data/lib/elasticsearch/api/actions/indices/clear_cache.rb +4 -0
  62. data/lib/elasticsearch/api/actions/indices/close.rb +4 -0
  63. data/lib/elasticsearch/api/actions/indices/create.rb +4 -0
  64. data/lib/elasticsearch/api/actions/indices/delete.rb +4 -0
  65. data/lib/elasticsearch/api/actions/indices/delete_alias.rb +4 -0
  66. data/lib/elasticsearch/api/actions/indices/delete_mapping.rb +4 -0
  67. data/lib/elasticsearch/api/actions/indices/delete_template.rb +4 -0
  68. data/lib/elasticsearch/api/actions/indices/delete_warmer.rb +4 -0
  69. data/lib/elasticsearch/api/actions/indices/exists.rb +4 -0
  70. data/lib/elasticsearch/api/actions/indices/exists_alias.rb +4 -0
  71. data/lib/elasticsearch/api/actions/indices/exists_template.rb +4 -0
  72. data/lib/elasticsearch/api/actions/indices/exists_type.rb +4 -0
  73. data/lib/elasticsearch/api/actions/indices/flush.rb +4 -0
  74. data/lib/elasticsearch/api/actions/indices/flush_synced.rb +4 -0
  75. data/lib/elasticsearch/api/actions/indices/forcemerge.rb +4 -0
  76. data/lib/elasticsearch/api/actions/indices/freeze.rb +4 -0
  77. data/lib/elasticsearch/api/actions/indices/get.rb +4 -0
  78. data/lib/elasticsearch/api/actions/indices/get_alias.rb +4 -0
  79. data/lib/elasticsearch/api/actions/indices/get_aliases.rb +4 -0
  80. data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +4 -0
  81. data/lib/elasticsearch/api/actions/indices/get_mapping.rb +4 -0
  82. data/lib/elasticsearch/api/actions/indices/get_settings.rb +4 -0
  83. data/lib/elasticsearch/api/actions/indices/get_template.rb +4 -0
  84. data/lib/elasticsearch/api/actions/indices/get_warmer.rb +4 -0
  85. data/lib/elasticsearch/api/actions/indices/open.rb +4 -0
  86. data/lib/elasticsearch/api/actions/indices/optimize.rb +4 -0
  87. data/lib/elasticsearch/api/actions/indices/params_registry.rb +4 -0
  88. data/lib/elasticsearch/api/actions/indices/put_alias.rb +4 -0
  89. data/lib/elasticsearch/api/actions/indices/put_mapping.rb +4 -0
  90. data/lib/elasticsearch/api/actions/indices/put_settings.rb +4 -0
  91. data/lib/elasticsearch/api/actions/indices/put_template.rb +4 -0
  92. data/lib/elasticsearch/api/actions/indices/put_warmer.rb +4 -0
  93. data/lib/elasticsearch/api/actions/indices/recovery.rb +4 -0
  94. data/lib/elasticsearch/api/actions/indices/refresh.rb +4 -0
  95. data/lib/elasticsearch/api/actions/indices/rollover.rb +4 -0
  96. data/lib/elasticsearch/api/actions/indices/seal.rb +4 -0
  97. data/lib/elasticsearch/api/actions/indices/segments.rb +4 -0
  98. data/lib/elasticsearch/api/actions/indices/shard_stores.rb +4 -0
  99. data/lib/elasticsearch/api/actions/indices/shrink.rb +4 -0
  100. data/lib/elasticsearch/api/actions/indices/snapshot_index.rb +4 -0
  101. data/lib/elasticsearch/api/actions/indices/split.rb +4 -0
  102. data/lib/elasticsearch/api/actions/indices/stats.rb +4 -0
  103. data/lib/elasticsearch/api/actions/indices/status.rb +4 -0
  104. data/lib/elasticsearch/api/actions/indices/unfreeze.rb +4 -0
  105. data/lib/elasticsearch/api/actions/indices/update_aliases.rb +4 -0
  106. data/lib/elasticsearch/api/actions/indices/upgrade.rb +4 -0
  107. data/lib/elasticsearch/api/actions/indices/validate_query.rb +4 -0
  108. data/lib/elasticsearch/api/actions/info.rb +4 -0
  109. data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +4 -0
  110. data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +4 -0
  111. data/lib/elasticsearch/api/actions/ingest/params_registry.rb +4 -0
  112. data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +4 -0
  113. data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +4 -0
  114. data/lib/elasticsearch/api/actions/ingest/simulate.rb +4 -0
  115. data/lib/elasticsearch/api/actions/list_benchmarks.rb +4 -0
  116. data/lib/elasticsearch/api/actions/mget.rb +4 -0
  117. data/lib/elasticsearch/api/actions/mlt.rb +4 -0
  118. data/lib/elasticsearch/api/actions/mpercolate.rb +4 -0
  119. data/lib/elasticsearch/api/actions/msearch.rb +4 -0
  120. data/lib/elasticsearch/api/actions/msearch_template.rb +4 -0
  121. data/lib/elasticsearch/api/actions/mtermvectors.rb +4 -0
  122. data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +4 -0
  123. data/lib/elasticsearch/api/actions/nodes/info.rb +4 -0
  124. data/lib/elasticsearch/api/actions/nodes/params_registry.rb +4 -0
  125. data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +4 -0
  126. data/lib/elasticsearch/api/actions/nodes/shutdown.rb +4 -0
  127. data/lib/elasticsearch/api/actions/nodes/stats.rb +4 -0
  128. data/lib/elasticsearch/api/actions/nodes/usage.rb +4 -0
  129. data/lib/elasticsearch/api/actions/params_registry.rb +4 -0
  130. data/lib/elasticsearch/api/actions/percolate.rb +4 -0
  131. data/lib/elasticsearch/api/actions/ping.rb +4 -0
  132. data/lib/elasticsearch/api/actions/put_script.rb +4 -0
  133. data/lib/elasticsearch/api/actions/put_template.rb +4 -0
  134. data/lib/elasticsearch/api/actions/rank_eval.rb +5 -1
  135. data/lib/elasticsearch/api/actions/reindex.rb +4 -0
  136. data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +4 -0
  137. data/lib/elasticsearch/api/actions/remote/info.rb +4 -0
  138. data/lib/elasticsearch/api/actions/render_search_template.rb +4 -0
  139. data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +4 -0
  140. data/lib/elasticsearch/api/actions/scroll.rb +4 -0
  141. data/lib/elasticsearch/api/actions/search.rb +4 -0
  142. data/lib/elasticsearch/api/actions/search_exists.rb +4 -0
  143. data/lib/elasticsearch/api/actions/search_shards.rb +4 -0
  144. data/lib/elasticsearch/api/actions/search_template.rb +4 -0
  145. data/lib/elasticsearch/api/actions/snapshot/create.rb +4 -0
  146. data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +4 -0
  147. data/lib/elasticsearch/api/actions/snapshot/delete.rb +4 -0
  148. data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +4 -0
  149. data/lib/elasticsearch/api/actions/snapshot/get.rb +4 -0
  150. data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +4 -0
  151. data/lib/elasticsearch/api/actions/snapshot/params_registry.rb +4 -0
  152. data/lib/elasticsearch/api/actions/snapshot/restore.rb +4 -0
  153. data/lib/elasticsearch/api/actions/snapshot/status.rb +4 -0
  154. data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +4 -0
  155. data/lib/elasticsearch/api/actions/suggest.rb +4 -0
  156. data/lib/elasticsearch/api/actions/tasks/cancel.rb +4 -0
  157. data/lib/elasticsearch/api/actions/tasks/get.rb +4 -0
  158. data/lib/elasticsearch/api/actions/tasks/list.rb +4 -0
  159. data/lib/elasticsearch/api/actions/tasks/params_registry.rb +4 -0
  160. data/lib/elasticsearch/api/actions/termvectors.rb +4 -0
  161. data/lib/elasticsearch/api/actions/update.rb +4 -0
  162. data/lib/elasticsearch/api/actions/update_by_query.rb +4 -0
  163. data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +4 -0
  164. data/lib/elasticsearch/api/namespace/cat.rb +4 -0
  165. data/lib/elasticsearch/api/namespace/cluster.rb +4 -0
  166. data/lib/elasticsearch/api/namespace/common.rb +4 -0
  167. data/lib/elasticsearch/api/namespace/indices.rb +4 -0
  168. data/lib/elasticsearch/api/namespace/ingest.rb +4 -0
  169. data/lib/elasticsearch/api/namespace/nodes.rb +4 -0
  170. data/lib/elasticsearch/api/namespace/remote.rb +4 -0
  171. data/lib/elasticsearch/api/namespace/snapshot.rb +4 -0
  172. data/lib/elasticsearch/api/namespace/tasks.rb +4 -0
  173. data/lib/elasticsearch/api/utils.rb +4 -0
  174. data/lib/elasticsearch/api/version.rb +5 -1
  175. data/spec/elasticsearch/api/actions/abort_benchmark_spec.rb +4 -0
  176. data/spec/elasticsearch/api/actions/benchmark_spec.rb +4 -0
  177. data/spec/elasticsearch/api/actions/bulk_spec.rb +4 -0
  178. data/spec/elasticsearch/api/actions/cat/aliases_spec.rb +4 -0
  179. data/spec/elasticsearch/api/actions/cat/allocation_spec.rb +4 -0
  180. data/spec/elasticsearch/api/actions/cat/count_spec.rb +4 -0
  181. data/spec/elasticsearch/api/actions/cat/fielddata_spec.rb +4 -0
  182. data/spec/elasticsearch/api/actions/cat/health_spec.rb +4 -0
  183. data/spec/elasticsearch/api/actions/cat/help_spec.rb +4 -0
  184. data/spec/elasticsearch/api/actions/cat/indices_spec.rb +4 -0
  185. data/spec/elasticsearch/api/actions/cat/master_spec.rb +4 -0
  186. data/spec/elasticsearch/api/actions/cat/nodeattrs_spec.rb +4 -0
  187. data/spec/elasticsearch/api/actions/cat/nodes_spec.rb +4 -0
  188. data/spec/elasticsearch/api/actions/cat/pending_tasks_spec.rb +4 -0
  189. data/spec/elasticsearch/api/actions/cat/plugins_spec.rb +4 -0
  190. data/spec/elasticsearch/api/actions/cat/recovery_spec.rb +4 -0
  191. data/spec/elasticsearch/api/actions/cat/repositories_spec.rb +4 -0
  192. data/spec/elasticsearch/api/actions/cat/segments_spec.rb +4 -0
  193. data/spec/elasticsearch/api/actions/cat/shards_spec.rb +4 -0
  194. data/spec/elasticsearch/api/actions/cat/snapshot_spec.rb +4 -0
  195. data/spec/elasticsearch/api/actions/cat/tasks_spec.rb +4 -0
  196. data/spec/elasticsearch/api/actions/cat/templates_spec.rb +4 -0
  197. data/spec/elasticsearch/api/actions/cat/thread_pool_spec.rb +4 -0
  198. data/spec/elasticsearch/api/actions/clear_scroll_spec.rb +4 -0
  199. data/spec/elasticsearch/api/actions/cluster/allocation_explain_spec.rb +4 -0
  200. data/spec/elasticsearch/api/actions/cluster/get_settings_spec.rb +4 -0
  201. data/spec/elasticsearch/api/actions/cluster/health_spec.rb +4 -0
  202. data/spec/elasticsearch/api/actions/cluster/pending_tasks_spec.rb +4 -0
  203. data/spec/elasticsearch/api/actions/cluster/put_settings_spec.rb +4 -0
  204. data/spec/elasticsearch/api/actions/cluster/remote_info_spec.rb +4 -0
  205. data/spec/elasticsearch/api/actions/cluster/reroute_spec.rb +4 -0
  206. data/spec/elasticsearch/api/actions/cluster/state_spec.rb +4 -0
  207. data/spec/elasticsearch/api/actions/cluster/stats_spec.rb +4 -0
  208. data/spec/elasticsearch/api/actions/count_percolate_spec.rb +4 -0
  209. data/spec/elasticsearch/api/actions/count_spec.rb +4 -0
  210. data/spec/elasticsearch/api/actions/create_document_spec.rb +4 -0
  211. data/spec/elasticsearch/api/actions/delete_by_query_spec.rb +4 -0
  212. data/spec/elasticsearch/api/actions/delete_document_spec.rb +4 -0
  213. data/spec/elasticsearch/api/actions/delete_script_spec.rb +4 -0
  214. data/spec/elasticsearch/api/actions/delete_template_spec.rb +4 -0
  215. data/spec/elasticsearch/api/actions/exists_document_spec.rb +4 -0
  216. data/spec/elasticsearch/api/actions/explain_document_spec.rb +4 -0
  217. data/spec/elasticsearch/api/actions/field_caps_spec.rb +4 -0
  218. data/spec/elasticsearch/api/actions/field_stats_spec.rb +4 -0
  219. data/spec/elasticsearch/api/actions/get_document_source_spec.rb +4 -0
  220. data/spec/elasticsearch/api/actions/get_document_spec.rb +4 -0
  221. data/spec/elasticsearch/api/actions/get_script_spec.rb +4 -0
  222. data/spec/elasticsearch/api/actions/get_template_spec.rb +4 -0
  223. data/spec/elasticsearch/api/actions/hashie_spec.rb +4 -0
  224. data/spec/elasticsearch/api/actions/index_document_spec.rb +4 -0
  225. data/spec/elasticsearch/api/actions/indices/analyze_spec.rb +4 -0
  226. data/spec/elasticsearch/api/actions/indices/clear_cache_spec.rb +4 -0
  227. data/spec/elasticsearch/api/actions/indices/close_spec.rb +4 -0
  228. data/spec/elasticsearch/api/actions/indices/create_spec.rb +4 -0
  229. data/spec/elasticsearch/api/actions/indices/delete_alias_spec.rb +4 -0
  230. data/spec/elasticsearch/api/actions/indices/delete_mapping_spec.rb +4 -0
  231. data/spec/elasticsearch/api/actions/indices/delete_spec.rb +4 -0
  232. data/spec/elasticsearch/api/actions/indices/delete_template_spec.rb +4 -0
  233. data/spec/elasticsearch/api/actions/indices/delete_warmer_spec.rb +4 -0
  234. data/spec/elasticsearch/api/actions/indices/exists_alias_spec.rb +4 -0
  235. data/spec/elasticsearch/api/actions/indices/exists_spec.rb +4 -0
  236. data/spec/elasticsearch/api/actions/indices/exists_template_spec.rb +4 -0
  237. data/spec/elasticsearch/api/actions/indices/exists_type_spec.rb +4 -0
  238. data/spec/elasticsearch/api/actions/indices/flush_spec.rb +4 -0
  239. data/spec/elasticsearch/api/actions/indices/flush_synced_spec.rb +4 -0
  240. data/spec/elasticsearch/api/actions/indices/forcemerge_spec.rb +4 -0
  241. data/spec/elasticsearch/api/actions/indices/get_alias_spec.rb +4 -0
  242. data/spec/elasticsearch/api/actions/indices/get_aliases_spec.rb +4 -0
  243. data/spec/elasticsearch/api/actions/indices/get_field_mapping_spec.rb +4 -0
  244. data/spec/elasticsearch/api/actions/indices/get_mapping_spec.rb +4 -0
  245. data/spec/elasticsearch/api/actions/indices/get_settings_spec.rb +4 -0
  246. data/spec/elasticsearch/api/actions/indices/get_spec.rb +4 -0
  247. data/spec/elasticsearch/api/actions/indices/get_template_spec.rb +4 -0
  248. data/spec/elasticsearch/api/actions/indices/get_warmer_spec.rb +4 -0
  249. data/spec/elasticsearch/api/actions/indices/open_spec.rb +4 -0
  250. data/spec/elasticsearch/api/actions/indices/optimize_spec.rb +4 -0
  251. data/spec/elasticsearch/api/actions/indices/put_alias_spec.rb +4 -0
  252. data/spec/elasticsearch/api/actions/indices/put_mapping_spec.rb +4 -0
  253. data/spec/elasticsearch/api/actions/indices/put_settings_spec.rb +4 -0
  254. data/spec/elasticsearch/api/actions/indices/put_template_spec.rb +4 -0
  255. data/spec/elasticsearch/api/actions/indices/put_warmer_spec.rb +4 -0
  256. data/spec/elasticsearch/api/actions/indices/recovery_spec.rb +4 -0
  257. data/spec/elasticsearch/api/actions/indices/refresh_spec.rb +4 -0
  258. data/spec/elasticsearch/api/actions/indices/rollover_spec.rb +4 -0
  259. data/spec/elasticsearch/api/actions/indices/seal_spec.rb +4 -0
  260. data/spec/elasticsearch/api/actions/indices/segments_spec.rb +4 -0
  261. data/spec/elasticsearch/api/actions/indices/shard_stores_spec.rb +4 -0
  262. data/spec/elasticsearch/api/actions/indices/shrink_spec.rb +4 -0
  263. data/spec/elasticsearch/api/actions/indices/snapshot_index_spec.rb +4 -0
  264. data/spec/elasticsearch/api/actions/indices/split_spec.rb +4 -0
  265. data/spec/elasticsearch/api/actions/indices/status_spec.rb +4 -0
  266. data/spec/elasticsearch/api/actions/indices/update_aliases_spec.rb +4 -0
  267. data/spec/elasticsearch/api/actions/indices/upgrade_spec.rb +4 -0
  268. data/spec/elasticsearch/api/actions/indices/validate_query_spec.rb +4 -0
  269. data/spec/elasticsearch/api/actions/info_spec.rb +4 -0
  270. data/spec/elasticsearch/api/actions/ingest/delete_pipeline_spec.rb +4 -0
  271. data/spec/elasticsearch/api/actions/ingest/get_pipeline_spec.rb +4 -0
  272. data/spec/elasticsearch/api/actions/ingest/put_pipeline_spec.rb +4 -0
  273. data/spec/elasticsearch/api/actions/ingest/simulate_spec.rb +4 -0
  274. data/spec/elasticsearch/api/actions/json_builders_spec.rb +4 -0
  275. data/spec/elasticsearch/api/actions/list_benchmarks_spec.rb +4 -0
  276. data/spec/elasticsearch/api/actions/mget_spec.rb +4 -0
  277. data/spec/elasticsearch/api/actions/mlt_spec.rb +4 -0
  278. data/spec/elasticsearch/api/actions/mpercolate_spec.rb +4 -0
  279. data/spec/elasticsearch/api/actions/msearch_spec.rb +4 -0
  280. data/spec/elasticsearch/api/actions/msearch_template_spec.rb +4 -0
  281. data/spec/elasticsearch/api/actions/mtermvectors_spec.rb +4 -0
  282. data/spec/elasticsearch/api/actions/nodes/hot_threads_spec.rb +4 -0
  283. data/spec/elasticsearch/api/actions/nodes/info_spec.rb +4 -0
  284. data/spec/elasticsearch/api/actions/nodes/reload_secure_settings_spec.rb +4 -0
  285. data/spec/elasticsearch/api/actions/nodes/shutdown_spec.rb +4 -0
  286. data/spec/elasticsearch/api/actions/nodes/stats_spec.rb +4 -0
  287. data/spec/elasticsearch/api/actions/ping_spec.rb +4 -0
  288. data/spec/elasticsearch/api/actions/put_script_spec.rb +4 -0
  289. data/spec/elasticsearch/api/actions/put_template_spec.rb +4 -0
  290. data/spec/elasticsearch/api/actions/rank_eval_spec.rb +113 -0
  291. data/spec/elasticsearch/api/actions/reindex_spec.rb +4 -0
  292. data/spec/elasticsearch/api/actions/remote/info_spec.rb +4 -0
  293. data/spec/elasticsearch/api/actions/render_search_template_spec.rb +4 -0
  294. data/spec/elasticsearch/api/actions/scoll_spec.rb +4 -0
  295. data/spec/elasticsearch/api/actions/search_exists_spec.rb +4 -0
  296. data/spec/elasticsearch/api/actions/search_shards_spec.rb +4 -0
  297. data/spec/elasticsearch/api/actions/search_spec.rb +4 -0
  298. data/spec/elasticsearch/api/actions/search_template_spec.rb +4 -0
  299. data/spec/elasticsearch/api/actions/snapshot/create_repository_spec.rb +4 -0
  300. data/spec/elasticsearch/api/actions/snapshot/create_spec.rb +4 -0
  301. data/spec/elasticsearch/api/actions/snapshot/delete_repository_spec.rb +4 -0
  302. data/spec/elasticsearch/api/actions/snapshot/delete_spec.rb +4 -0
  303. data/spec/elasticsearch/api/actions/snapshot/get_repository_spec.rb +4 -0
  304. data/spec/elasticsearch/api/actions/snapshot/get_spec.rb +4 -0
  305. data/spec/elasticsearch/api/actions/snapshot/restore_spec.rb +4 -0
  306. data/spec/elasticsearch/api/actions/snapshot/status_spec.rb +4 -0
  307. data/spec/elasticsearch/api/actions/snapshot/verify_repository_spec.rb +4 -0
  308. data/spec/elasticsearch/api/actions/suggest_spec.rb +4 -0
  309. data/spec/elasticsearch/api/actions/tasks/cancel_spec.rb +4 -0
  310. data/spec/elasticsearch/api/actions/tasks/get_spec.rb +4 -0
  311. data/spec/elasticsearch/api/actions/tasks/list_spec.rb +4 -0
  312. data/spec/elasticsearch/api/actions/termvectors_spec.rb +4 -0
  313. data/spec/elasticsearch/api/actions/update_by_query_spec.rb +4 -0
  314. data/spec/elasticsearch/api/actions/update_document_spec.rb +4 -0
  315. data/spec/elasticsearch/api/api_spec.rb +4 -0
  316. data/spec/elasticsearch/api/client_spec.rb +4 -0
  317. data/spec/elasticsearch/api/utils_spec.rb +4 -0
  318. data/spec/spec_helper.rb +5 -0
  319. data/test/integration/yaml_test_runner.rb +4 -0
  320. data/test/test_helper.rb +4 -0
  321. data/utils/thor/generate_api.rb +4 -0
  322. data/utils/thor/generate_source.rb +4 -0
  323. data/utils/thor/lister.rb +4 -0
  324. data/utils/thor/templates/ruby/test_helper.rb +4 -0
  325. metadata +63 -53
  326. data/spec/elasticsearch/api/actions/percolate_spec.rb +0 -67
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea6ab52950e83b24cbb87ed4a58f1c1eae325170433b02a2421283539e679c2b
4
- data.tar.gz: 84d1095dcc22c1689b252d493e6cec165f47db0d89ed172f48e96990a45029e8
3
+ metadata.gz: 189b37e1f3de337d048e43d01b673d268108c27071209bdc8881530313a2f7bf
4
+ data.tar.gz: f8231f560f906dbec3706cb37e460e9413a04a553750402173dcf80d0e8949ca
5
5
  SHA512:
6
- metadata.gz: ff0b03e96cbaf0eceb4ba0eec469ba8a43e12257f67cc59d264d9e1952739e9cf7c589b259e2348935e67c606b8d25e2c97c9fded7136bf8b281275f002102fc
7
- data.tar.gz: 432aa6bfc7ba57f409d8dd3d2346de02785cc7abbfb0a3d6452c3ed0b917c644dc24302b097a97424e098a2117d99fc347001dc1cca073c51a0a0055cee1aad7
6
+ metadata.gz: d0e6a577e166b08c2b7cd8e11898e305d86ef638ae25043b5d3a67917061a722ad72bd5dac05a12958b9e8e6568a9e89629e91732118f74a5f724d72b24cfa87
7
+ data.tar.gz: f2be3aa25b1ce9676f1079b61a2e56a0c58e86a29d0285c92e29cffc8a4c538b881503941e8945bac83f20dda9b6570503e839782fe24728355118ecabd5e4cf
data/Gemfile CHANGED
@@ -19,4 +19,5 @@ end
19
19
  group :development do
20
20
  gem 'rspec'
21
21
  gem 'pry-nav'
22
+ gem 'rspec_junit_formatter'
22
23
  end
data/Rakefile CHANGED
@@ -73,7 +73,7 @@ namespace :test do
73
73
  es_version_info = client.info['version']
74
74
  build_hash = es_version_info['build_hash']
75
75
  cluster_running = true
76
- rescue Faraday::Error::ConnectionFailed
76
+ rescue Faraday::ConnectionFailed
77
77
  STDERR.puts "[!] Test cluster not running?"
78
78
  cluster_running = false
79
79
  end
@@ -4,71 +4,54 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'elasticsearch/api/version'
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = "elasticsearch-api"
7
+ s.name = 'elasticsearch-api'
8
8
  s.version = Elasticsearch::API::VERSION
9
- s.authors = ["Karel Minarik"]
10
- s.email = ["karel.minarik@elasticsearch.org"]
11
- s.summary = "Ruby API for Elasticsearch."
12
- s.homepage = "https://github.com/elasticsearch/elasticsearch-ruby/tree/master/elasticsearch-api"
13
- s.license = "Apache-2.0"
14
-
9
+ s.authors = ['Karel Minarik']
10
+ s.email = ['karel.minarik@elasticsearch.org']
11
+ s.summary = 'Ruby API for Elasticsearch.'
12
+ s.homepage = 'https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/index.html'
13
+ s.license = 'Apache-2.0'
14
+ s.metadata = {
15
+ 'homepage_uri' => 'https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/index.html',
16
+ 'changelog_uri' => 'https://github.com/elastic/elasticsearch-ruby/blob/6.x/CHANGELOG.md',
17
+ 'source_code_uri' => 'https://github.com/elastic/elasticsearch-ruby/tree/6.x/elasticsearch-api',
18
+ 'bug_tracker_uri' => 'https://github.com/elastic/elasticsearch-ruby/issues'
19
+ }
15
20
  s.files = `git ls-files`.split($/)
16
21
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
22
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
18
- s.require_paths = ["lib"]
19
-
20
- s.extra_rdoc_files = [ "README.md", "LICENSE.txt" ]
21
- s.rdoc_options = [ "--charset=UTF-8" ]
22
-
23
- s.required_ruby_version = '>= 1.9'
24
-
25
- s.add_dependency "multi_json"
26
-
27
- s.add_development_dependency "bundler"
28
-
29
- if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
30
- s.add_development_dependency "rake", "~> 11.1"
31
- else
32
- s.add_development_dependency "rake", "< 11.0"
33
- end
34
-
35
- s.add_development_dependency "elasticsearch"
36
- s.add_development_dependency "elasticsearch-transport"
37
-
38
- if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
39
- s.add_development_dependency "minitest", "~> 4.0"
40
- s.add_development_dependency "elasticsearch-extensions"
41
- end
42
-
43
- s.add_development_dependency "ansi"
44
- s.add_development_dependency "shoulda-context"
45
- s.add_development_dependency "mocha"
46
- s.add_development_dependency "turn"
47
- s.add_development_dependency "yard"
48
- s.add_development_dependency "pry"
49
-
23
+ s.require_paths = ['lib']
24
+
25
+ s.extra_rdoc_files = ['README.md', 'LICENSE.txt']
26
+ s.rdoc_options = ['--charset=UTF-8']
27
+
28
+ s.required_ruby_version = '>= 2.4'
29
+
30
+ s.add_dependency 'multi_json'
31
+ s.add_development_dependency 'ansi'
32
+ s.add_development_dependency 'bundler'
33
+ s.add_development_dependency 'elasticsearch'
34
+ s.add_development_dependency 'elasticsearch-extensions'
35
+ s.add_development_dependency 'elasticsearch-transport'
36
+ s.add_development_dependency 'minitest', '~> 4.0'
37
+ s.add_development_dependency 'mocha'
38
+ s.add_development_dependency 'pry'
39
+ s.add_development_dependency 'rake', '~> 13'
40
+ s.add_development_dependency 'shoulda-context'
41
+ s.add_development_dependency 'turn'
42
+ s.add_development_dependency 'yard'
50
43
  # Gems for testing integrations
51
- s.add_development_dependency "jsonify"
52
- s.add_development_dependency "hashie"
53
-
54
- # Prevent unit test failures on Ruby 1.8
55
- if defined?(RUBY_VERSION) && RUBY_VERSION < '1.9'
56
- s.add_development_dependency "test-unit", '~> 2'
57
- s.add_development_dependency "json", '~> 1.8'
58
- end
59
-
60
- if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
61
- s.add_development_dependency "ruby-prof" unless defined?(JRUBY_VERSION) || defined?(Rubinius)
62
- s.add_development_dependency "jbuilder"
63
- s.add_development_dependency "escape_utils" unless defined? JRUBY_VERSION
64
- s.add_development_dependency "simplecov"
65
- s.add_development_dependency "simplecov-rcov"
66
- s.add_development_dependency "cane"
67
- s.add_development_dependency "require-prof" unless defined?(JRUBY_VERSION) || defined?(Rubinius)
68
- end
69
-
70
- if defined?(RUBY_VERSION) && RUBY_VERSION > '2.2'
71
- s.add_development_dependency "test-unit", '~> 2'
44
+ s.add_development_dependency 'cane'
45
+ s.add_development_dependency 'escape_utils' unless defined? JRUBY_VERSION
46
+ s.add_development_dependency 'hashie'
47
+ s.add_development_dependency 'jbuilder'
48
+ s.add_development_dependency 'jsonify'
49
+ s.add_development_dependency 'simplecov', '~> 0.17', '< 0.18'
50
+ s.add_development_dependency 'simplecov-rcov'
51
+ s.add_development_dependency 'test-unit', '~> 2'
52
+ unless defined?(JRUBY_VERSION) || defined?(Rubinius)
53
+ s.add_development_dependency 'require-prof'
54
+ s.add_development_dependency 'ruby-prof'
72
55
  end
73
56
 
74
57
  s.description = <<-DESC.gsub(/^ /, '')
@@ -1 +1,5 @@
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
+
1
5
  require 'elasticsearch/api'
@@ -1,3 +1,7 @@
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
+
1
5
  require "cgi"
2
6
  require "multi_json"
3
7
 
@@ -28,7 +32,8 @@ module Elasticsearch
28
32
  :format, # Search, Cat, ...
29
33
  :pretty, # Pretty-print the response
30
34
  :human, # Return numeric values in human readable format
31
- :filter_path # Filter the JSON response
35
+ :filter_path, # Filter the JSON response
36
+ :opaque_id # Use X-Opaque-Id
32
37
  ]
33
38
 
34
39
  HTTP_GET = 'GET'.freeze
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Actions
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Actions
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Actions
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cat
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Actions
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cluster
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cluster
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cluster
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cluster
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cluster
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cluster
@@ -1,3 +1,7 @@
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
+
1
5
  module Elasticsearch
2
6
  module API
3
7
  module Cluster