es-elasticity 0.13.5 → 1.0.0.jhumphreys
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +43 -42
- data/CHANGELOG.md +18 -0
- data/CONTRIBUTING.md +11 -12
- data/Gemfile.lock +53 -34
- data/README.md +48 -44
- data/es-elasticity.gemspec +7 -7
- data/lib/elasticity/base_document.rb +3 -1
- data/lib/elasticity/bulk.rb +20 -18
- data/lib/elasticity/config.rb +2 -0
- data/lib/elasticity/document.rb +2 -0
- data/lib/elasticity/index_config.rb +19 -5
- data/lib/elasticity/index_mapper.rb +10 -9
- data/lib/elasticity/instrumented_client.rb +2 -0
- data/lib/elasticity/log_subscriber.rb +2 -0
- data/lib/elasticity/multi_search.rb +2 -0
- data/lib/elasticity/multi_search_response_parser.rb +3 -0
- data/lib/elasticity/railtie.rb +3 -1
- data/lib/elasticity/search.rb +7 -5
- data/lib/elasticity/segmented_document.rb +2 -0
- data/lib/elasticity/strategies/alias_index.rb +32 -39
- data/lib/elasticity/strategies/single_index.rb +16 -20
- data/lib/elasticity/strategies.rb +2 -0
- data/lib/elasticity/version.rb +3 -1
- metadata +27 -22
- data/lib/elasticity/scrollable_search.rb +0 -15
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: es-elasticity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.jhumphreys
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Kochenburger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.3.4
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.3.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,74 +170,80 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: 5.2.0
|
174
174
|
- - "<"
|
175
175
|
- !ruby/object:Gem::Version
|
176
|
-
version: '7'
|
176
|
+
version: '7.1'
|
177
177
|
type: :runtime
|
178
178
|
prerelease: false
|
179
179
|
version_requirements: !ruby/object:Gem::Requirement
|
180
180
|
requirements:
|
181
181
|
- - ">="
|
182
182
|
- !ruby/object:Gem::Version
|
183
|
-
version:
|
183
|
+
version: 5.2.0
|
184
184
|
- - "<"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: '7'
|
186
|
+
version: '7.1'
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: activerecord
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|
190
190
|
requirements:
|
191
191
|
- - ">="
|
192
192
|
- !ruby/object:Gem::Version
|
193
|
-
version:
|
193
|
+
version: 5.2.0
|
194
194
|
- - "<"
|
195
195
|
- !ruby/object:Gem::Version
|
196
|
-
version: '7'
|
196
|
+
version: '7.1'
|
197
197
|
type: :runtime
|
198
198
|
prerelease: false
|
199
199
|
version_requirements: !ruby/object:Gem::Requirement
|
200
200
|
requirements:
|
201
201
|
- - ">="
|
202
202
|
- !ruby/object:Gem::Version
|
203
|
-
version:
|
203
|
+
version: 5.2.0
|
204
204
|
- - "<"
|
205
205
|
- !ruby/object:Gem::Version
|
206
|
-
version: '7'
|
206
|
+
version: '7.1'
|
207
207
|
- !ruby/object:Gem::Dependency
|
208
208
|
name: activesupport
|
209
209
|
requirement: !ruby/object:Gem::Requirement
|
210
210
|
requirements:
|
211
211
|
- - ">="
|
212
212
|
- !ruby/object:Gem::Version
|
213
|
-
version:
|
213
|
+
version: 5.2.0
|
214
214
|
- - "<"
|
215
215
|
- !ruby/object:Gem::Version
|
216
|
-
version: '7'
|
216
|
+
version: '7.1'
|
217
217
|
type: :runtime
|
218
218
|
prerelease: false
|
219
219
|
version_requirements: !ruby/object:Gem::Requirement
|
220
220
|
requirements:
|
221
221
|
- - ">="
|
222
222
|
- !ruby/object:Gem::Version
|
223
|
-
version:
|
223
|
+
version: 5.2.0
|
224
224
|
- - "<"
|
225
225
|
- !ruby/object:Gem::Version
|
226
|
-
version: '7'
|
226
|
+
version: '7.1'
|
227
227
|
- !ruby/object:Gem::Dependency
|
228
228
|
name: elasticsearch
|
229
229
|
requirement: !ruby/object:Gem::Requirement
|
230
230
|
requirements:
|
231
231
|
- - ">="
|
232
232
|
- !ruby/object:Gem::Version
|
233
|
-
version: '
|
233
|
+
version: '7'
|
234
|
+
- - "<"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '8'
|
234
237
|
type: :runtime
|
235
238
|
prerelease: false
|
236
239
|
version_requirements: !ruby/object:Gem::Requirement
|
237
240
|
requirements:
|
238
241
|
- - ">="
|
239
242
|
- !ruby/object:Gem::Version
|
240
|
-
version: '
|
243
|
+
version: '7'
|
244
|
+
- - "<"
|
245
|
+
- !ruby/object:Gem::Version
|
246
|
+
version: '8'
|
241
247
|
description: Elasticity provides a higher level abstraction on top of [elasticsearch-ruby](https://github.com/elasticsearch/elasticsearch-ruby)
|
242
248
|
gem
|
243
249
|
email:
|
@@ -271,7 +277,6 @@ files:
|
|
271
277
|
- lib/elasticity/multi_search.rb
|
272
278
|
- lib/elasticity/multi_search_response_parser.rb
|
273
279
|
- lib/elasticity/railtie.rb
|
274
|
-
- lib/elasticity/scrollable_search.rb
|
275
280
|
- lib/elasticity/search.rb
|
276
281
|
- lib/elasticity/segmented_document.rb
|
277
282
|
- lib/elasticity/strategies.rb
|
@@ -295,11 +300,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
295
300
|
version: '0'
|
296
301
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
297
302
|
requirements:
|
298
|
-
- - "
|
303
|
+
- - ">"
|
299
304
|
- !ruby/object:Gem::Version
|
300
|
-
version:
|
305
|
+
version: 1.3.1
|
301
306
|
requirements: []
|
302
|
-
rubygems_version: 3.
|
307
|
+
rubygems_version: 3.3.11
|
303
308
|
signing_key:
|
304
309
|
specification_version: 4
|
305
310
|
summary: ActiveModel-based library for working with Elasticsearch
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Elasticity
|
2
|
-
class ScrollableSearch
|
3
|
-
def self.search_type
|
4
|
-
if elasticsearch_gem_version < Gem::Version.create("2.0")
|
5
|
-
:scan
|
6
|
-
else
|
7
|
-
:query_then_fetch
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
def self.elasticsearch_gem_version
|
12
|
-
Gem.loaded_specs["elasticsearch"].version
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|