elasticsearch-api 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +13 -0
  5. data/README.md +160 -0
  6. data/Rakefile +62 -0
  7. data/elasticsearch-api.gemspec +51 -0
  8. data/lib/elasticsearch-api +1 -0
  9. data/lib/elasticsearch/api.rb +23 -0
  10. data/lib/elasticsearch/api/actions/bulk.rb +71 -0
  11. data/lib/elasticsearch/api/actions/cluster/get_settings.rb +21 -0
  12. data/lib/elasticsearch/api/actions/cluster/health.rb +50 -0
  13. data/lib/elasticsearch/api/actions/cluster/node_hot_threads.rb +46 -0
  14. data/lib/elasticsearch/api/actions/cluster/node_info.rb +59 -0
  15. data/lib/elasticsearch/api/actions/cluster/node_shutdown.rb +36 -0
  16. data/lib/elasticsearch/api/actions/cluster/node_stats.rb +77 -0
  17. data/lib/elasticsearch/api/actions/cluster/put_settings.rb +28 -0
  18. data/lib/elasticsearch/api/actions/cluster/reroute.rb +44 -0
  19. data/lib/elasticsearch/api/actions/cluster/state.rb +47 -0
  20. data/lib/elasticsearch/api/actions/count.rb +46 -0
  21. data/lib/elasticsearch/api/actions/create.rb +34 -0
  22. data/lib/elasticsearch/api/actions/delete.rb +61 -0
  23. data/lib/elasticsearch/api/actions/delete_by_query.rb +62 -0
  24. data/lib/elasticsearch/api/actions/exists.rb +51 -0
  25. data/lib/elasticsearch/api/actions/explain.rb +71 -0
  26. data/lib/elasticsearch/api/actions/get.rb +59 -0
  27. data/lib/elasticsearch/api/actions/get_source.rb +59 -0
  28. data/lib/elasticsearch/api/actions/index.rb +81 -0
  29. data/lib/elasticsearch/api/actions/indices/analyze.rb +63 -0
  30. data/lib/elasticsearch/api/actions/indices/clear_cache.rb +69 -0
  31. data/lib/elasticsearch/api/actions/indices/close.rb +35 -0
  32. data/lib/elasticsearch/api/actions/indices/create.rb +83 -0
  33. data/lib/elasticsearch/api/actions/indices/delete.rb +48 -0
  34. data/lib/elasticsearch/api/actions/indices/delete_alias.rb +37 -0
  35. data/lib/elasticsearch/api/actions/indices/delete_mapping.rb +26 -0
  36. data/lib/elasticsearch/api/actions/indices/delete_template.rb +33 -0
  37. data/lib/elasticsearch/api/actions/indices/delete_warmer.rb +32 -0
  38. data/lib/elasticsearch/api/actions/indices/exists.rb +35 -0
  39. data/lib/elasticsearch/api/actions/indices/exists_alias.rb +41 -0
  40. data/lib/elasticsearch/api/actions/indices/exists_type.rb +39 -0
  41. data/lib/elasticsearch/api/actions/indices/flush.rb +40 -0
  42. data/lib/elasticsearch/api/actions/indices/get_alias.rb +41 -0
  43. data/lib/elasticsearch/api/actions/indices/get_aliases.rb +32 -0
  44. data/lib/elasticsearch/api/actions/indices/get_mapping.rb +36 -0
  45. data/lib/elasticsearch/api/actions/indices/get_settings.rb +32 -0
  46. data/lib/elasticsearch/api/actions/indices/get_template.rb +30 -0
  47. data/lib/elasticsearch/api/actions/indices/get_warmer.rb +44 -0
  48. data/lib/elasticsearch/api/actions/indices/open.rb +33 -0
  49. data/lib/elasticsearch/api/actions/indices/optimize.rb +57 -0
  50. data/lib/elasticsearch/api/actions/indices/put_alias.rb +43 -0
  51. data/lib/elasticsearch/api/actions/indices/put_mapping.rb +49 -0
  52. data/lib/elasticsearch/api/actions/indices/put_settings.rb +45 -0
  53. data/lib/elasticsearch/api/actions/indices/put_template.rb +40 -0
  54. data/lib/elasticsearch/api/actions/indices/put_warmer.rb +48 -0
  55. data/lib/elasticsearch/api/actions/indices/refresh.rb +43 -0
  56. data/lib/elasticsearch/api/actions/indices/segments.rb +33 -0
  57. data/lib/elasticsearch/api/actions/indices/snapshot_index.rb +32 -0
  58. data/lib/elasticsearch/api/actions/indices/stats.rb +96 -0
  59. data/lib/elasticsearch/api/actions/indices/status.rb +46 -0
  60. data/lib/elasticsearch/api/actions/indices/update_aliases.rb +49 -0
  61. data/lib/elasticsearch/api/actions/indices/validate_query.rb +68 -0
  62. data/lib/elasticsearch/api/actions/info.rb +19 -0
  63. data/lib/elasticsearch/api/actions/mget.rb +64 -0
  64. data/lib/elasticsearch/api/actions/mlt.rb +86 -0
  65. data/lib/elasticsearch/api/actions/msearch.rb +75 -0
  66. data/lib/elasticsearch/api/actions/percolate.rb +57 -0
  67. data/lib/elasticsearch/api/actions/ping.rb +29 -0
  68. data/lib/elasticsearch/api/actions/scroll.rb +44 -0
  69. data/lib/elasticsearch/api/actions/search.rb +145 -0
  70. data/lib/elasticsearch/api/actions/suggest.rb +46 -0
  71. data/lib/elasticsearch/api/actions/update.rb +103 -0
  72. data/lib/elasticsearch/api/namespace/cluster.rb +20 -0
  73. data/lib/elasticsearch/api/namespace/common.rb +27 -0
  74. data/lib/elasticsearch/api/namespace/indices.rb +20 -0
  75. data/lib/elasticsearch/api/utils.rb +97 -0
  76. data/lib/elasticsearch/api/version.rb +5 -0
  77. data/test/integration/yaml_test_runner.rb +330 -0
  78. data/test/test_helper.rb +52 -0
  79. data/test/unit/bulk_test.rb +85 -0
  80. data/test/unit/client_test.rb +31 -0
  81. data/test/unit/cluster/get_settings_test.rb +26 -0
  82. data/test/unit/cluster/health_test.rb +38 -0
  83. data/test/unit/cluster/node_hot_threads_test.rb +35 -0
  84. data/test/unit/cluster/node_info_test.rb +45 -0
  85. data/test/unit/cluster/node_shutdown_test.rb +45 -0
  86. data/test/unit/cluster/node_stats_test.rb +65 -0
  87. data/test/unit/cluster/put_settings_test.rb +26 -0
  88. data/test/unit/cluster/reroute_test.rb +38 -0
  89. data/test/unit/cluster/state_test.rb +37 -0
  90. data/test/unit/count_test.rb +46 -0
  91. data/test/unit/create_document_test.rb +38 -0
  92. data/test/unit/delete_by_query_test.rb +42 -0
  93. data/test/unit/delete_document_test.rb +62 -0
  94. data/test/unit/exists_document_test.rb +76 -0
  95. data/test/unit/explain_document_test.rb +64 -0
  96. data/test/unit/get_document_source_test.rb +62 -0
  97. data/test/unit/get_document_test.rb +62 -0
  98. data/test/unit/hashie_test.rb +78 -0
  99. data/test/unit/index_document_test.rb +77 -0
  100. data/test/unit/indices/analyze_test.rb +67 -0
  101. data/test/unit/indices/clear_cache_test.rb +45 -0
  102. data/test/unit/indices/close_test.rb +42 -0
  103. data/test/unit/indices/create_test.rb +42 -0
  104. data/test/unit/indices/delete_alias_test.rb +38 -0
  105. data/test/unit/indices/delete_mapping_test.rb +47 -0
  106. data/test/unit/indices/delete_template_test.rb +26 -0
  107. data/test/unit/indices/delete_test.rb +45 -0
  108. data/test/unit/indices/delete_warmer_test.rb +59 -0
  109. data/test/unit/indices/exists_alias_test.rb +65 -0
  110. data/test/unit/indices/exists_test.rb +57 -0
  111. data/test/unit/indices/exists_type_test.rb +59 -0
  112. data/test/unit/indices/flush_test.rb +45 -0
  113. data/test/unit/indices/get_alias_test.rb +41 -0
  114. data/test/unit/indices/get_aliases_test.rb +35 -0
  115. data/test/unit/indices/get_mapping_test.rb +53 -0
  116. data/test/unit/indices/get_settings_test.rb +35 -0
  117. data/test/unit/indices/get_template_test.rb +32 -0
  118. data/test/unit/indices/get_warmer_test.rb +41 -0
  119. data/test/unit/indices/open_test.rb +42 -0
  120. data/test/unit/indices/optimize_test.rb +45 -0
  121. data/test/unit/indices/put_alias_test.rb +47 -0
  122. data/test/unit/indices/put_mapping_test.rb +57 -0
  123. data/test/unit/indices/put_settings_test.rb +50 -0
  124. data/test/unit/indices/put_template_test.rb +48 -0
  125. data/test/unit/indices/put_warmer_test.rb +62 -0
  126. data/test/unit/indices/refresh_test.rb +55 -0
  127. data/test/unit/indices/segments_test.rb +55 -0
  128. data/test/unit/indices/snapshot_index_test.rb +55 -0
  129. data/test/unit/indices/stats_test.rb +76 -0
  130. data/test/unit/indices/status_test.rb +55 -0
  131. data/test/unit/indices/update_aliases_test.rb +42 -0
  132. data/test/unit/indices/validate_query_test.rb +75 -0
  133. data/test/unit/info_test.rb +26 -0
  134. data/test/unit/json_builders_test.rb +64 -0
  135. data/test/unit/mget_test.rb +70 -0
  136. data/test/unit/mlt_test.rb +80 -0
  137. data/test/unit/msearch_test.rb +120 -0
  138. data/test/unit/percolate_test.rb +49 -0
  139. data/test/unit/ping_test.rb +48 -0
  140. data/test/unit/scroll_test.rb +26 -0
  141. data/test/unit/search_test.rb +93 -0
  142. data/test/unit/suggest_test.rb +55 -0
  143. data/test/unit/update_document_test.rb +62 -0
  144. data/test/unit/utils_test.rb +118 -0
  145. metadata +498 -0
@@ -0,0 +1,62 @@
1
+ require 'test_helper'
2
+
3
+ module Elasticsearch
4
+ module Test
5
+ class UpdateTest < ::Test::Unit::TestCase
6
+
7
+ context "Update document" do
8
+ subject { FakeClient.new }
9
+
10
+ should "require the :index argument" do
11
+ assert_raise ArgumentError do
12
+ subject.update :type => 'bar', :id => '1'
13
+ end
14
+ end
15
+
16
+ should "require the :type argument" do
17
+ assert_raise ArgumentError do
18
+ subject.update :index => 'foo', :id => '1'
19
+ end
20
+ end
21
+
22
+ should "require the :id argument" do
23
+ assert_raise ArgumentError do
24
+ subject.update :index => 'foo', :type => 'bar'
25
+ end
26
+ end
27
+
28
+ should "perform correct request" do
29
+ subject.expects(:perform_request).with do |method, url, params, body|
30
+ assert_equal 'POST', method
31
+ assert_equal 'foo/bar/1/_update', url
32
+ assert_equal Hash.new, params
33
+ assert_equal Hash.new, body[:doc]
34
+ true
35
+ end.returns(FakeResponse.new)
36
+
37
+ subject.update :index => 'foo', :type => 'bar', :id => '1', :body => { :doc => {} }
38
+ end
39
+
40
+ should "pass the URL parameters" do
41
+ subject.expects(:perform_request).with do |method, url, params, body|
42
+ assert_equal 'foo/bar/1/_update', url
43
+ assert_equal 100, params[:version]
44
+ true
45
+ end.returns(FakeResponse.new)
46
+
47
+ subject.update :index => 'foo', :type => 'bar', :id => '1', :version => 100, :body => {}
48
+ end
49
+
50
+ should "catch a NotFound exception with the ignore parameter" do
51
+ subject.expects(:perform_request).raises(NotFound)
52
+
53
+ assert_nothing_raised do
54
+ subject.get :index => 'foo', :type => 'bar', :id => 'XXX', ignore: 404
55
+ end
56
+ end
57
+
58
+ end
59
+
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,118 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'test_helper'
4
+
5
+ module Elasticsearch
6
+ module Test
7
+ class UtilsTest < ::Test::Unit::TestCase
8
+ include Elasticsearch::API::Utils
9
+
10
+ context "Utils" do
11
+
12
+ context "__escape" do
13
+
14
+ should "encode Unicode characters" do
15
+ assert_equal '%E4%B8%AD%E6%96%87', __escape('中文')
16
+ end
17
+
18
+ should "encode special characters" do
19
+ assert_equal 'foo%20bar', __escape('foo bar')
20
+ end
21
+
22
+ end
23
+
24
+ context "__listify" do
25
+
26
+ should "create a list from single value" do
27
+ assert_equal 'foo', __listify('foo')
28
+ end
29
+
30
+ should "create a list from an array" do
31
+ assert_equal 'foo,bar', __listify(['foo', 'bar'])
32
+ end
33
+
34
+ should "create a list from multiple arguments" do
35
+ assert_equal 'foo,bar', __listify('foo', 'bar')
36
+ end
37
+
38
+ should "ignore nil values" do
39
+ assert_equal 'foo,bar', __listify(['foo', nil, 'bar'])
40
+ end
41
+
42
+ end
43
+
44
+ context "__pathify" do
45
+
46
+ should "create a path from single value" do
47
+ assert_equal 'foo', __pathify('foo')
48
+ end
49
+
50
+ should "create a path from an array" do
51
+ assert_equal 'foo/bar', __pathify(['foo', 'bar'])
52
+ end
53
+
54
+ should "ignore nil values" do
55
+ assert_equal 'foo/bar', __pathify(['foo', nil, 'bar'])
56
+ end
57
+
58
+ should "ignore empty string values" do
59
+ assert_equal 'foo/bar', __pathify(['foo', '', 'bar'])
60
+ end
61
+
62
+ should "encode special characters" do
63
+ assert_equal 'foo/bar%5Ebam', __pathify(['foo', 'bar^bam'])
64
+ end
65
+
66
+ end
67
+
68
+ context "__bulkify" do
69
+
70
+ should "serialize array of hashes" do
71
+ result = Elasticsearch::API::Utils.__bulkify [
72
+ { :index => { :_index => 'myindexA', :_type => 'mytype', :_id => '1', :data => { :title => 'Test' } } },
73
+ { :update => { :_index => 'myindexB', :_type => 'mytype', :_id => '2', :data => { :doc => { :title => 'Update' } } } },
74
+ { :delete => { :_index => 'myindexC', :_type => 'mytypeC', :_id => '3' } }
75
+ ]
76
+
77
+ if RUBY_1_8
78
+ lines = result.split("\n")
79
+
80
+ assert_equal 5, lines.size
81
+ assert_match /\{"index"\:\{/, lines[0]
82
+ assert_match /\{"title"\:"Test"/, lines[1]
83
+ assert_match /\{"update"\:\{/, lines[2]
84
+ assert_match /\{"doc"\:\{"title"/, lines[3]
85
+ else
86
+ assert_equal <<-PAYLOAD.gsub(/^\s+/, ''), result
87
+ {"index":{"_index":"myindexA","_type":"mytype","_id":"1"}}
88
+ {"title":"Test"}
89
+ {"update":{"_index":"myindexB","_type":"mytype","_id":"2"}}
90
+ {"doc":{"title":"Update"}}
91
+ {"delete":{"_index":"myindexC","_type":"mytypeC","_id":"3"}}
92
+ PAYLOAD
93
+ end
94
+ end
95
+
96
+ should "serialize arrays of strings" do
97
+ result = Elasticsearch::API::Utils.__bulkify ['{"foo":"bar"}','{"moo":"bam"}']
98
+ assert_equal <<-PAYLOAD.gsub(/^\s+/, ''), result
99
+ {"foo":"bar"}
100
+ {"moo":"bam"}
101
+ PAYLOAD
102
+ end
103
+
104
+ should "serialize arrays of header/data pairs" do
105
+ result = Elasticsearch::API::Utils.__bulkify [{:foo => "bar"},{:moo => "bam"},{:foo => "baz"}]
106
+ assert_equal <<-PAYLOAD.gsub(/^\s+/, ''), result
107
+ {"foo":"bar"}
108
+ {"moo":"bam"}
109
+ {"foo":"baz"}
110
+ PAYLOAD
111
+ end
112
+
113
+ end
114
+
115
+ end
116
+ end
117
+ end
118
+ end
metadata ADDED
@@ -0,0 +1,498 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: elasticsearch-api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Karel Minarik
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-09-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: multi_json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>'
32
+ - !ruby/object:Gem::Version
33
+ version: '1'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>'
39
+ - !ruby/object:Gem::Version
40
+ version: '1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: elasticsearch-transport
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: ansi
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: shoulda-context
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: mocha
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: turn
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: yard
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: ruby-prof
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: multi_json
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: jbuilder
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - '>='
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: jsonify
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - '>='
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - '>='
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: hashie
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - '>='
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - '>='
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: simplecov
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - '>='
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - '>='
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: cane
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - '>='
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: require-prof
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - '>='
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - '>='
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ description: |
252
+ Ruby API for Elasticsearch. See the `elasticsearch` gem for full integration.
253
+ email:
254
+ - karel.minarik@elasticsearch.org
255
+ executables: []
256
+ extensions: []
257
+ extra_rdoc_files:
258
+ - README.md
259
+ - LICENSE.txt
260
+ files:
261
+ - .gitignore
262
+ - Gemfile
263
+ - LICENSE.txt
264
+ - README.md
265
+ - Rakefile
266
+ - elasticsearch-api.gemspec
267
+ - lib/elasticsearch-api
268
+ - lib/elasticsearch/api.rb
269
+ - lib/elasticsearch/api/actions/bulk.rb
270
+ - lib/elasticsearch/api/actions/cluster/get_settings.rb
271
+ - lib/elasticsearch/api/actions/cluster/health.rb
272
+ - lib/elasticsearch/api/actions/cluster/node_hot_threads.rb
273
+ - lib/elasticsearch/api/actions/cluster/node_info.rb
274
+ - lib/elasticsearch/api/actions/cluster/node_shutdown.rb
275
+ - lib/elasticsearch/api/actions/cluster/node_stats.rb
276
+ - lib/elasticsearch/api/actions/cluster/put_settings.rb
277
+ - lib/elasticsearch/api/actions/cluster/reroute.rb
278
+ - lib/elasticsearch/api/actions/cluster/state.rb
279
+ - lib/elasticsearch/api/actions/count.rb
280
+ - lib/elasticsearch/api/actions/create.rb
281
+ - lib/elasticsearch/api/actions/delete.rb
282
+ - lib/elasticsearch/api/actions/delete_by_query.rb
283
+ - lib/elasticsearch/api/actions/exists.rb
284
+ - lib/elasticsearch/api/actions/explain.rb
285
+ - lib/elasticsearch/api/actions/get.rb
286
+ - lib/elasticsearch/api/actions/get_source.rb
287
+ - lib/elasticsearch/api/actions/index.rb
288
+ - lib/elasticsearch/api/actions/indices/analyze.rb
289
+ - lib/elasticsearch/api/actions/indices/clear_cache.rb
290
+ - lib/elasticsearch/api/actions/indices/close.rb
291
+ - lib/elasticsearch/api/actions/indices/create.rb
292
+ - lib/elasticsearch/api/actions/indices/delete.rb
293
+ - lib/elasticsearch/api/actions/indices/delete_alias.rb
294
+ - lib/elasticsearch/api/actions/indices/delete_mapping.rb
295
+ - lib/elasticsearch/api/actions/indices/delete_template.rb
296
+ - lib/elasticsearch/api/actions/indices/delete_warmer.rb
297
+ - lib/elasticsearch/api/actions/indices/exists.rb
298
+ - lib/elasticsearch/api/actions/indices/exists_alias.rb
299
+ - lib/elasticsearch/api/actions/indices/exists_type.rb
300
+ - lib/elasticsearch/api/actions/indices/flush.rb
301
+ - lib/elasticsearch/api/actions/indices/get_alias.rb
302
+ - lib/elasticsearch/api/actions/indices/get_aliases.rb
303
+ - lib/elasticsearch/api/actions/indices/get_mapping.rb
304
+ - lib/elasticsearch/api/actions/indices/get_settings.rb
305
+ - lib/elasticsearch/api/actions/indices/get_template.rb
306
+ - lib/elasticsearch/api/actions/indices/get_warmer.rb
307
+ - lib/elasticsearch/api/actions/indices/open.rb
308
+ - lib/elasticsearch/api/actions/indices/optimize.rb
309
+ - lib/elasticsearch/api/actions/indices/put_alias.rb
310
+ - lib/elasticsearch/api/actions/indices/put_mapping.rb
311
+ - lib/elasticsearch/api/actions/indices/put_settings.rb
312
+ - lib/elasticsearch/api/actions/indices/put_template.rb
313
+ - lib/elasticsearch/api/actions/indices/put_warmer.rb
314
+ - lib/elasticsearch/api/actions/indices/refresh.rb
315
+ - lib/elasticsearch/api/actions/indices/segments.rb
316
+ - lib/elasticsearch/api/actions/indices/snapshot_index.rb
317
+ - lib/elasticsearch/api/actions/indices/stats.rb
318
+ - lib/elasticsearch/api/actions/indices/status.rb
319
+ - lib/elasticsearch/api/actions/indices/update_aliases.rb
320
+ - lib/elasticsearch/api/actions/indices/validate_query.rb
321
+ - lib/elasticsearch/api/actions/info.rb
322
+ - lib/elasticsearch/api/actions/mget.rb
323
+ - lib/elasticsearch/api/actions/mlt.rb
324
+ - lib/elasticsearch/api/actions/msearch.rb
325
+ - lib/elasticsearch/api/actions/percolate.rb
326
+ - lib/elasticsearch/api/actions/ping.rb
327
+ - lib/elasticsearch/api/actions/scroll.rb
328
+ - lib/elasticsearch/api/actions/search.rb
329
+ - lib/elasticsearch/api/actions/suggest.rb
330
+ - lib/elasticsearch/api/actions/update.rb
331
+ - lib/elasticsearch/api/namespace/cluster.rb
332
+ - lib/elasticsearch/api/namespace/common.rb
333
+ - lib/elasticsearch/api/namespace/indices.rb
334
+ - lib/elasticsearch/api/utils.rb
335
+ - lib/elasticsearch/api/version.rb
336
+ - test/integration/yaml_test_runner.rb
337
+ - test/test_helper.rb
338
+ - test/unit/bulk_test.rb
339
+ - test/unit/client_test.rb
340
+ - test/unit/cluster/get_settings_test.rb
341
+ - test/unit/cluster/health_test.rb
342
+ - test/unit/cluster/node_hot_threads_test.rb
343
+ - test/unit/cluster/node_info_test.rb
344
+ - test/unit/cluster/node_shutdown_test.rb
345
+ - test/unit/cluster/node_stats_test.rb
346
+ - test/unit/cluster/put_settings_test.rb
347
+ - test/unit/cluster/reroute_test.rb
348
+ - test/unit/cluster/state_test.rb
349
+ - test/unit/count_test.rb
350
+ - test/unit/create_document_test.rb
351
+ - test/unit/delete_by_query_test.rb
352
+ - test/unit/delete_document_test.rb
353
+ - test/unit/exists_document_test.rb
354
+ - test/unit/explain_document_test.rb
355
+ - test/unit/get_document_source_test.rb
356
+ - test/unit/get_document_test.rb
357
+ - test/unit/hashie_test.rb
358
+ - test/unit/index_document_test.rb
359
+ - test/unit/indices/analyze_test.rb
360
+ - test/unit/indices/clear_cache_test.rb
361
+ - test/unit/indices/close_test.rb
362
+ - test/unit/indices/create_test.rb
363
+ - test/unit/indices/delete_alias_test.rb
364
+ - test/unit/indices/delete_mapping_test.rb
365
+ - test/unit/indices/delete_template_test.rb
366
+ - test/unit/indices/delete_test.rb
367
+ - test/unit/indices/delete_warmer_test.rb
368
+ - test/unit/indices/exists_alias_test.rb
369
+ - test/unit/indices/exists_test.rb
370
+ - test/unit/indices/exists_type_test.rb
371
+ - test/unit/indices/flush_test.rb
372
+ - test/unit/indices/get_alias_test.rb
373
+ - test/unit/indices/get_aliases_test.rb
374
+ - test/unit/indices/get_mapping_test.rb
375
+ - test/unit/indices/get_settings_test.rb
376
+ - test/unit/indices/get_template_test.rb
377
+ - test/unit/indices/get_warmer_test.rb
378
+ - test/unit/indices/open_test.rb
379
+ - test/unit/indices/optimize_test.rb
380
+ - test/unit/indices/put_alias_test.rb
381
+ - test/unit/indices/put_mapping_test.rb
382
+ - test/unit/indices/put_settings_test.rb
383
+ - test/unit/indices/put_template_test.rb
384
+ - test/unit/indices/put_warmer_test.rb
385
+ - test/unit/indices/refresh_test.rb
386
+ - test/unit/indices/segments_test.rb
387
+ - test/unit/indices/snapshot_index_test.rb
388
+ - test/unit/indices/stats_test.rb
389
+ - test/unit/indices/status_test.rb
390
+ - test/unit/indices/update_aliases_test.rb
391
+ - test/unit/indices/validate_query_test.rb
392
+ - test/unit/info_test.rb
393
+ - test/unit/json_builders_test.rb
394
+ - test/unit/mget_test.rb
395
+ - test/unit/mlt_test.rb
396
+ - test/unit/msearch_test.rb
397
+ - test/unit/percolate_test.rb
398
+ - test/unit/ping_test.rb
399
+ - test/unit/scroll_test.rb
400
+ - test/unit/search_test.rb
401
+ - test/unit/suggest_test.rb
402
+ - test/unit/update_document_test.rb
403
+ - test/unit/utils_test.rb
404
+ homepage: https://github.com/elasticsearch/elasticsearch-ruby/tree/master/elasticsearch-api
405
+ licenses:
406
+ - Apache 2
407
+ metadata: {}
408
+ post_install_message:
409
+ rdoc_options:
410
+ - --charset=UTF-8
411
+ require_paths:
412
+ - lib
413
+ required_ruby_version: !ruby/object:Gem::Requirement
414
+ requirements:
415
+ - - '>='
416
+ - !ruby/object:Gem::Version
417
+ version: '0'
418
+ required_rubygems_version: !ruby/object:Gem::Requirement
419
+ requirements:
420
+ - - '>='
421
+ - !ruby/object:Gem::Version
422
+ version: '0'
423
+ requirements: []
424
+ rubyforge_project:
425
+ rubygems_version: 2.0.0
426
+ signing_key:
427
+ specification_version: 4
428
+ summary: Ruby API for Elasticsearch.
429
+ test_files:
430
+ - test/integration/yaml_test_runner.rb
431
+ - test/test_helper.rb
432
+ - test/unit/bulk_test.rb
433
+ - test/unit/client_test.rb
434
+ - test/unit/cluster/get_settings_test.rb
435
+ - test/unit/cluster/health_test.rb
436
+ - test/unit/cluster/node_hot_threads_test.rb
437
+ - test/unit/cluster/node_info_test.rb
438
+ - test/unit/cluster/node_shutdown_test.rb
439
+ - test/unit/cluster/node_stats_test.rb
440
+ - test/unit/cluster/put_settings_test.rb
441
+ - test/unit/cluster/reroute_test.rb
442
+ - test/unit/cluster/state_test.rb
443
+ - test/unit/count_test.rb
444
+ - test/unit/create_document_test.rb
445
+ - test/unit/delete_by_query_test.rb
446
+ - test/unit/delete_document_test.rb
447
+ - test/unit/exists_document_test.rb
448
+ - test/unit/explain_document_test.rb
449
+ - test/unit/get_document_source_test.rb
450
+ - test/unit/get_document_test.rb
451
+ - test/unit/hashie_test.rb
452
+ - test/unit/index_document_test.rb
453
+ - test/unit/indices/analyze_test.rb
454
+ - test/unit/indices/clear_cache_test.rb
455
+ - test/unit/indices/close_test.rb
456
+ - test/unit/indices/create_test.rb
457
+ - test/unit/indices/delete_alias_test.rb
458
+ - test/unit/indices/delete_mapping_test.rb
459
+ - test/unit/indices/delete_template_test.rb
460
+ - test/unit/indices/delete_test.rb
461
+ - test/unit/indices/delete_warmer_test.rb
462
+ - test/unit/indices/exists_alias_test.rb
463
+ - test/unit/indices/exists_test.rb
464
+ - test/unit/indices/exists_type_test.rb
465
+ - test/unit/indices/flush_test.rb
466
+ - test/unit/indices/get_alias_test.rb
467
+ - test/unit/indices/get_aliases_test.rb
468
+ - test/unit/indices/get_mapping_test.rb
469
+ - test/unit/indices/get_settings_test.rb
470
+ - test/unit/indices/get_template_test.rb
471
+ - test/unit/indices/get_warmer_test.rb
472
+ - test/unit/indices/open_test.rb
473
+ - test/unit/indices/optimize_test.rb
474
+ - test/unit/indices/put_alias_test.rb
475
+ - test/unit/indices/put_mapping_test.rb
476
+ - test/unit/indices/put_settings_test.rb
477
+ - test/unit/indices/put_template_test.rb
478
+ - test/unit/indices/put_warmer_test.rb
479
+ - test/unit/indices/refresh_test.rb
480
+ - test/unit/indices/segments_test.rb
481
+ - test/unit/indices/snapshot_index_test.rb
482
+ - test/unit/indices/stats_test.rb
483
+ - test/unit/indices/status_test.rb
484
+ - test/unit/indices/update_aliases_test.rb
485
+ - test/unit/indices/validate_query_test.rb
486
+ - test/unit/info_test.rb
487
+ - test/unit/json_builders_test.rb
488
+ - test/unit/mget_test.rb
489
+ - test/unit/mlt_test.rb
490
+ - test/unit/msearch_test.rb
491
+ - test/unit/percolate_test.rb
492
+ - test/unit/ping_test.rb
493
+ - test/unit/scroll_test.rb
494
+ - test/unit/search_test.rb
495
+ - test/unit/suggest_test.rb
496
+ - test/unit/update_document_test.rb
497
+ - test/unit/utils_test.rb
498
+ has_rdoc: