chewy 6.0.0 → 7.5.1
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.
- checksums.yaml +4 -4
- data/.github/CODEOWNERS +1 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +39 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +16 -0
- data/.github/dependabot.yml +42 -0
- data/.github/workflows/ruby.yml +48 -0
- data/.rubocop.yml +16 -8
- data/.rubocop_todo.yml +110 -22
- data/CHANGELOG.md +385 -105
- data/CODE_OF_CONDUCT.md +14 -0
- data/CONTRIBUTING.md +63 -0
- data/Gemfile +4 -10
- data/Guardfile +3 -1
- data/README.md +494 -275
- data/chewy.gemspec +5 -20
- data/gemfiles/base.gemfile +12 -0
- data/gemfiles/rails.6.1.activerecord.gemfile +10 -15
- data/gemfiles/rails.7.0.activerecord.gemfile +14 -0
- data/gemfiles/rails.7.1.activerecord.gemfile +14 -0
- data/lib/chewy/config.rb +58 -50
- data/lib/chewy/elastic_client.rb +31 -0
- data/lib/chewy/errors.rb +7 -10
- data/lib/chewy/fields/base.rb +79 -13
- data/lib/chewy/fields/root.rb +4 -14
- data/lib/chewy/index/actions.rb +54 -37
- data/lib/chewy/{type → index}/adapter/active_record.rb +30 -6
- data/lib/chewy/{type → index}/adapter/base.rb +2 -3
- data/lib/chewy/{type → index}/adapter/object.rb +27 -31
- data/lib/chewy/{type → index}/adapter/orm.rb +17 -18
- data/lib/chewy/index/aliases.rb +14 -5
- data/lib/chewy/index/crutch.rb +40 -0
- data/lib/chewy/index/import/bulk_builder.rb +311 -0
- data/lib/chewy/{type → index}/import/bulk_request.rb +6 -7
- data/lib/chewy/{type → index}/import/journal_builder.rb +11 -12
- data/lib/chewy/{type → index}/import/routine.rb +18 -17
- data/lib/chewy/{type → index}/import.rb +76 -32
- data/lib/chewy/{type → index}/mapping.rb +29 -34
- data/lib/chewy/index/observe/active_record_methods.rb +87 -0
- data/lib/chewy/index/observe/callback.rb +34 -0
- data/lib/chewy/index/observe.rb +17 -0
- data/lib/chewy/index/specification.rb +1 -0
- data/lib/chewy/{type → index}/syncer.rb +59 -59
- data/lib/chewy/{type → index}/witchcraft.rb +11 -7
- data/lib/chewy/{type → index}/wrapper.rb +2 -2
- data/lib/chewy/index.rb +67 -94
- data/lib/chewy/journal.rb +25 -14
- data/lib/chewy/log_subscriber.rb +5 -1
- data/lib/chewy/minitest/helpers.rb +86 -13
- data/lib/chewy/minitest/search_index_receiver.rb +24 -26
- data/lib/chewy/railtie.rb +6 -20
- data/lib/chewy/rake_helper.rb +169 -113
- data/lib/chewy/rspec/build_query.rb +12 -0
- data/lib/chewy/rspec/helpers.rb +55 -0
- data/lib/chewy/rspec/update_index.rb +55 -44
- data/lib/chewy/rspec.rb +2 -0
- data/lib/chewy/runtime/version.rb +1 -1
- data/lib/chewy/runtime.rb +1 -1
- data/lib/chewy/search/loader.rb +19 -41
- data/lib/chewy/search/parameters/collapse.rb +16 -0
- data/lib/chewy/search/parameters/concerns/query_storage.rb +2 -2
- data/lib/chewy/search/parameters/ignore_unavailable.rb +27 -0
- data/lib/chewy/search/parameters/indices.rb +13 -58
- data/lib/chewy/search/parameters/knn.rb +16 -0
- data/lib/chewy/search/parameters/order.rb +6 -19
- data/lib/chewy/search/parameters/source.rb +5 -1
- data/lib/chewy/search/parameters/storage.rb +1 -1
- data/lib/chewy/search/parameters/track_total_hits.rb +16 -0
- data/lib/chewy/search/parameters.rb +6 -4
- data/lib/chewy/search/query_proxy.rb +9 -2
- data/lib/chewy/search/request.rb +169 -134
- data/lib/chewy/search/response.rb +5 -5
- data/lib/chewy/search/scoping.rb +7 -8
- data/lib/chewy/search/scrolling.rb +13 -13
- data/lib/chewy/search.rb +9 -19
- data/lib/chewy/stash.rb +19 -30
- data/lib/chewy/strategy/active_job.rb +1 -1
- data/lib/chewy/strategy/atomic_no_refresh.rb +18 -0
- data/lib/chewy/strategy/base.rb +10 -0
- data/lib/chewy/strategy/delayed_sidekiq/scheduler.rb +151 -0
- data/lib/chewy/strategy/delayed_sidekiq/worker.rb +52 -0
- data/lib/chewy/strategy/delayed_sidekiq.rb +30 -0
- data/lib/chewy/strategy/lazy_sidekiq.rb +64 -0
- data/lib/chewy/strategy/sidekiq.rb +2 -1
- data/lib/chewy/strategy.rb +6 -19
- data/lib/chewy/version.rb +1 -1
- data/lib/chewy.rb +39 -86
- data/lib/generators/chewy/install_generator.rb +1 -1
- data/lib/tasks/chewy.rake +36 -32
- data/migration_guide.md +46 -8
- data/spec/chewy/config_spec.rb +14 -39
- data/spec/chewy/elastic_client_spec.rb +26 -0
- data/spec/chewy/fields/base_spec.rb +432 -147
- data/spec/chewy/fields/root_spec.rb +20 -28
- data/spec/chewy/fields/time_fields_spec.rb +5 -5
- data/spec/chewy/index/actions_spec.rb +368 -59
- data/spec/chewy/{type → index}/adapter/active_record_spec.rb +156 -40
- data/spec/chewy/{type → index}/adapter/object_spec.rb +21 -6
- data/spec/chewy/index/aliases_spec.rb +3 -3
- data/spec/chewy/index/import/bulk_builder_spec.rb +494 -0
- data/spec/chewy/{type → index}/import/bulk_request_spec.rb +5 -12
- data/spec/chewy/{type → index}/import/journal_builder_spec.rb +9 -19
- data/spec/chewy/{type → index}/import/routine_spec.rb +19 -19
- data/spec/chewy/{type → index}/import_spec.rb +164 -98
- data/spec/chewy/index/mapping_spec.rb +135 -0
- data/spec/chewy/index/observe/active_record_methods_spec.rb +68 -0
- data/spec/chewy/index/observe/callback_spec.rb +139 -0
- data/spec/chewy/index/observe_spec.rb +143 -0
- data/spec/chewy/index/settings_spec.rb +3 -1
- data/spec/chewy/index/specification_spec.rb +20 -30
- data/spec/chewy/{type → index}/syncer_spec.rb +14 -19
- data/spec/chewy/{type → index}/witchcraft_spec.rb +20 -22
- data/spec/chewy/index/wrapper_spec.rb +100 -0
- data/spec/chewy/index_spec.rb +60 -105
- data/spec/chewy/journal_spec.rb +25 -74
- data/spec/chewy/minitest/helpers_spec.rb +123 -15
- data/spec/chewy/minitest/search_index_receiver_spec.rb +28 -30
- data/spec/chewy/multi_search_spec.rb +4 -5
- data/spec/chewy/rake_helper_spec.rb +315 -55
- data/spec/chewy/rspec/build_query_spec.rb +34 -0
- data/spec/chewy/rspec/helpers_spec.rb +61 -0
- data/spec/chewy/rspec/update_index_spec.rb +74 -71
- data/spec/chewy/runtime_spec.rb +2 -2
- data/spec/chewy/search/loader_spec.rb +19 -53
- data/spec/chewy/search/pagination/kaminari_examples.rb +4 -6
- data/spec/chewy/search/pagination/kaminari_spec.rb +2 -2
- data/spec/chewy/search/parameters/collapse_spec.rb +5 -0
- data/spec/chewy/search/parameters/ignore_unavailable_spec.rb +67 -0
- data/spec/chewy/search/parameters/indices_spec.rb +26 -117
- data/spec/chewy/search/parameters/knn_spec.rb +5 -0
- data/spec/chewy/search/parameters/order_spec.rb +18 -11
- data/spec/chewy/search/parameters/query_storage_examples.rb +67 -21
- data/spec/chewy/search/parameters/search_after_spec.rb +4 -1
- data/spec/chewy/search/parameters/source_spec.rb +8 -2
- data/spec/chewy/search/parameters/track_total_hits_spec.rb +5 -0
- data/spec/chewy/search/parameters_spec.rb +18 -4
- data/spec/chewy/search/query_proxy_spec.rb +68 -17
- data/spec/chewy/search/request_spec.rb +292 -110
- data/spec/chewy/search/response_spec.rb +12 -12
- data/spec/chewy/search/scrolling_spec.rb +10 -17
- data/spec/chewy/search_spec.rb +40 -34
- data/spec/chewy/stash_spec.rb +9 -21
- data/spec/chewy/strategy/active_job_spec.rb +16 -16
- data/spec/chewy/strategy/atomic_no_refresh_spec.rb +60 -0
- data/spec/chewy/strategy/atomic_spec.rb +9 -10
- data/spec/chewy/strategy/delayed_sidekiq_spec.rb +202 -0
- data/spec/chewy/strategy/lazy_sidekiq_spec.rb +214 -0
- data/spec/chewy/strategy/sidekiq_spec.rb +12 -12
- data/spec/chewy/strategy_spec.rb +19 -15
- data/spec/chewy_spec.rb +24 -107
- data/spec/spec_helper.rb +3 -22
- data/spec/support/active_record.rb +25 -7
- metadata +78 -339
- data/.circleci/config.yml +0 -240
- data/Appraisals +0 -81
- data/gemfiles/rails.5.2.activerecord.gemfile +0 -17
- data/gemfiles/rails.5.2.mongoid.6.4.gemfile +0 -17
- data/gemfiles/rails.6.0.activerecord.gemfile +0 -17
- data/gemfiles/sequel.4.45.gemfile +0 -11
- data/lib/chewy/backports/deep_dup.rb +0 -46
- data/lib/chewy/backports/duplicable.rb +0 -91
- data/lib/chewy/search/pagination/will_paginate.rb +0 -43
- data/lib/chewy/search/parameters/types.rb +0 -20
- data/lib/chewy/strategy/resque.rb +0 -27
- data/lib/chewy/strategy/shoryuken.rb +0 -40
- data/lib/chewy/type/actions.rb +0 -43
- data/lib/chewy/type/adapter/mongoid.rb +0 -67
- data/lib/chewy/type/adapter/sequel.rb +0 -93
- data/lib/chewy/type/crutch.rb +0 -32
- data/lib/chewy/type/import/bulk_builder.rb +0 -122
- data/lib/chewy/type/observe.rb +0 -82
- data/lib/chewy/type.rb +0 -120
- data/lib/sequel/plugins/chewy_observe.rb +0 -63
- data/spec/chewy/search/pagination/will_paginate_examples.rb +0 -63
- data/spec/chewy/search/pagination/will_paginate_spec.rb +0 -23
- data/spec/chewy/search/parameters/types_spec.rb +0 -5
- data/spec/chewy/strategy/resque_spec.rb +0 -46
- data/spec/chewy/strategy/shoryuken_spec.rb +0 -70
- data/spec/chewy/type/actions_spec.rb +0 -50
- data/spec/chewy/type/adapter/mongoid_spec.rb +0 -372
- data/spec/chewy/type/adapter/sequel_spec.rb +0 -472
- data/spec/chewy/type/import/bulk_builder_spec.rb +0 -194
- data/spec/chewy/type/mapping_spec.rb +0 -175
- data/spec/chewy/type/observe_spec.rb +0 -137
- data/spec/chewy/type/wrapper_spec.rb +0 -100
- data/spec/chewy/type_spec.rb +0 -55
- data/spec/support/mongoid.rb +0 -93
- data/spec/support/sequel.rb +0 -80
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chewy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toptal, LLC
|
@@ -9,190 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-01-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: appraisal
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - ">="
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: '0'
|
21
|
-
type: :development
|
22
|
-
prerelease: false
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - ">="
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
version: '0'
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: database_cleaner
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - ">="
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '0'
|
35
|
-
type: :development
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - ">="
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '0'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: elasticsearch-extensions
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - ">="
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '0'
|
49
|
-
type: :development
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - ">="
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '0'
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: rake
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '0'
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: resque_spec
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
73
|
-
requirements:
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '0'
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - ">="
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '0'
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: rspec
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: 3.7.0
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - ">="
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: 3.7.0
|
98
|
-
- !ruby/object:Gem::Dependency
|
99
|
-
name: rspec-collection_matchers
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
101
|
-
requirements:
|
102
|
-
- - ">="
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: '0'
|
105
|
-
type: :development
|
106
|
-
prerelease: false
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
108
|
-
requirements:
|
109
|
-
- - ">="
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: '0'
|
112
|
-
- !ruby/object:Gem::Dependency
|
113
|
-
name: rspec-its
|
114
|
-
requirement: !ruby/object:Gem::Requirement
|
115
|
-
requirements:
|
116
|
-
- - ">="
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
version: '0'
|
119
|
-
type: :development
|
120
|
-
prerelease: false
|
121
|
-
version_requirements: !ruby/object:Gem::Requirement
|
122
|
-
requirements:
|
123
|
-
- - ">="
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: '0'
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: rubocop
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
requirements:
|
130
|
-
- - '='
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: 0.52.1
|
133
|
-
type: :development
|
134
|
-
prerelease: false
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
136
|
-
requirements:
|
137
|
-
- - '='
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: 0.52.1
|
140
|
-
- !ruby/object:Gem::Dependency
|
141
|
-
name: sqlite3
|
142
|
-
requirement: !ruby/object:Gem::Requirement
|
143
|
-
requirements:
|
144
|
-
- - ">="
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
version: '0'
|
147
|
-
type: :development
|
148
|
-
prerelease: false
|
149
|
-
version_requirements: !ruby/object:Gem::Requirement
|
150
|
-
requirements:
|
151
|
-
- - ">="
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: '0'
|
154
|
-
- !ruby/object:Gem::Dependency
|
155
|
-
name: timecop
|
156
|
-
requirement: !ruby/object:Gem::Requirement
|
157
|
-
requirements:
|
158
|
-
- - ">="
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
version: '0'
|
161
|
-
type: :development
|
162
|
-
prerelease: false
|
163
|
-
version_requirements: !ruby/object:Gem::Requirement
|
164
|
-
requirements:
|
165
|
-
- - ">="
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
version: '0'
|
168
|
-
- !ruby/object:Gem::Dependency
|
169
|
-
name: method_source
|
170
|
-
requirement: !ruby/object:Gem::Requirement
|
171
|
-
requirements:
|
172
|
-
- - ">="
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
version: '0'
|
175
|
-
type: :development
|
176
|
-
prerelease: false
|
177
|
-
version_requirements: !ruby/object:Gem::Requirement
|
178
|
-
requirements:
|
179
|
-
- - ">="
|
180
|
-
- !ruby/object:Gem::Version
|
181
|
-
version: '0'
|
182
|
-
- !ruby/object:Gem::Dependency
|
183
|
-
name: unparser
|
184
|
-
requirement: !ruby/object:Gem::Requirement
|
185
|
-
requirements:
|
186
|
-
- - ">="
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
version: '0'
|
189
|
-
type: :development
|
190
|
-
prerelease: false
|
191
|
-
version_requirements: !ruby/object:Gem::Requirement
|
192
|
-
requirements:
|
193
|
-
- - ">="
|
194
|
-
- !ruby/object:Gem::Version
|
195
|
-
version: '0'
|
196
14
|
- !ruby/object:Gem::Dependency
|
197
15
|
name: activesupport
|
198
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -213,14 +31,20 @@ dependencies:
|
|
213
31
|
requirements:
|
214
32
|
- - ">="
|
215
33
|
- !ruby/object:Gem::Version
|
216
|
-
version:
|
34
|
+
version: 7.12.0
|
35
|
+
- - "<"
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 7.14.0
|
217
38
|
type: :runtime
|
218
39
|
prerelease: false
|
219
40
|
version_requirements: !ruby/object:Gem::Requirement
|
220
41
|
requirements:
|
221
42
|
- - ">="
|
222
43
|
- !ruby/object:Gem::Version
|
223
|
-
version:
|
44
|
+
version: 7.12.0
|
45
|
+
- - "<"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 7.14.0
|
224
48
|
- !ruby/object:Gem::Dependency
|
225
49
|
name: elasticsearch-dsl
|
226
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -244,14 +68,20 @@ executables: []
|
|
244
68
|
extensions: []
|
245
69
|
extra_rdoc_files: []
|
246
70
|
files:
|
247
|
-
- ".
|
71
|
+
- ".github/CODEOWNERS"
|
72
|
+
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
73
|
+
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
74
|
+
- ".github/PULL_REQUEST_TEMPLATE.md"
|
75
|
+
- ".github/dependabot.yml"
|
76
|
+
- ".github/workflows/ruby.yml"
|
248
77
|
- ".gitignore"
|
249
78
|
- ".rspec"
|
250
79
|
- ".rubocop.yml"
|
251
80
|
- ".rubocop_todo.yml"
|
252
81
|
- ".yardopts"
|
253
|
-
- Appraisals
|
254
82
|
- CHANGELOG.md
|
83
|
+
- CODE_OF_CONDUCT.md
|
84
|
+
- CONTRIBUTING.md
|
255
85
|
- Gemfile
|
256
86
|
- Guardfile
|
257
87
|
- LICENSE.txt
|
@@ -259,23 +89,38 @@ files:
|
|
259
89
|
- Rakefile
|
260
90
|
- chewy.gemspec
|
261
91
|
- filters
|
262
|
-
- gemfiles/
|
263
|
-
- gemfiles/rails.5.2.mongoid.6.4.gemfile
|
264
|
-
- gemfiles/rails.6.0.activerecord.gemfile
|
92
|
+
- gemfiles/base.gemfile
|
265
93
|
- gemfiles/rails.6.1.activerecord.gemfile
|
266
|
-
- gemfiles/
|
94
|
+
- gemfiles/rails.7.0.activerecord.gemfile
|
95
|
+
- gemfiles/rails.7.1.activerecord.gemfile
|
267
96
|
- lib/chewy.rb
|
268
|
-
- lib/chewy/backports/deep_dup.rb
|
269
|
-
- lib/chewy/backports/duplicable.rb
|
270
97
|
- lib/chewy/config.rb
|
98
|
+
- lib/chewy/elastic_client.rb
|
271
99
|
- lib/chewy/errors.rb
|
272
100
|
- lib/chewy/fields/base.rb
|
273
101
|
- lib/chewy/fields/root.rb
|
274
102
|
- lib/chewy/index.rb
|
275
103
|
- lib/chewy/index/actions.rb
|
104
|
+
- lib/chewy/index/adapter/active_record.rb
|
105
|
+
- lib/chewy/index/adapter/base.rb
|
106
|
+
- lib/chewy/index/adapter/object.rb
|
107
|
+
- lib/chewy/index/adapter/orm.rb
|
276
108
|
- lib/chewy/index/aliases.rb
|
109
|
+
- lib/chewy/index/crutch.rb
|
110
|
+
- lib/chewy/index/import.rb
|
111
|
+
- lib/chewy/index/import/bulk_builder.rb
|
112
|
+
- lib/chewy/index/import/bulk_request.rb
|
113
|
+
- lib/chewy/index/import/journal_builder.rb
|
114
|
+
- lib/chewy/index/import/routine.rb
|
115
|
+
- lib/chewy/index/mapping.rb
|
116
|
+
- lib/chewy/index/observe.rb
|
117
|
+
- lib/chewy/index/observe/active_record_methods.rb
|
118
|
+
- lib/chewy/index/observe/callback.rb
|
277
119
|
- lib/chewy/index/settings.rb
|
278
120
|
- lib/chewy/index/specification.rb
|
121
|
+
- lib/chewy/index/syncer.rb
|
122
|
+
- lib/chewy/index/witchcraft.rb
|
123
|
+
- lib/chewy/index/wrapper.rb
|
279
124
|
- lib/chewy/journal.rb
|
280
125
|
- lib/chewy/log_subscriber.rb
|
281
126
|
- lib/chewy/minitest.rb
|
@@ -286,16 +131,18 @@ files:
|
|
286
131
|
- lib/chewy/rake_helper.rb
|
287
132
|
- lib/chewy/repository.rb
|
288
133
|
- lib/chewy/rspec.rb
|
134
|
+
- lib/chewy/rspec/build_query.rb
|
135
|
+
- lib/chewy/rspec/helpers.rb
|
289
136
|
- lib/chewy/rspec/update_index.rb
|
290
137
|
- lib/chewy/runtime.rb
|
291
138
|
- lib/chewy/runtime/version.rb
|
292
139
|
- lib/chewy/search.rb
|
293
140
|
- lib/chewy/search/loader.rb
|
294
141
|
- lib/chewy/search/pagination/kaminari.rb
|
295
|
-
- lib/chewy/search/pagination/will_paginate.rb
|
296
142
|
- lib/chewy/search/parameters.rb
|
297
143
|
- lib/chewy/search/parameters/aggs.rb
|
298
144
|
- lib/chewy/search/parameters/allow_partial_search_results.rb
|
145
|
+
- lib/chewy/search/parameters/collapse.rb
|
299
146
|
- lib/chewy/search/parameters/concerns/bool_storage.rb
|
300
147
|
- lib/chewy/search/parameters/concerns/hash_storage.rb
|
301
148
|
- lib/chewy/search/parameters/concerns/integer_storage.rb
|
@@ -306,8 +153,10 @@ files:
|
|
306
153
|
- lib/chewy/search/parameters/explain.rb
|
307
154
|
- lib/chewy/search/parameters/filter.rb
|
308
155
|
- lib/chewy/search/parameters/highlight.rb
|
156
|
+
- lib/chewy/search/parameters/ignore_unavailable.rb
|
309
157
|
- lib/chewy/search/parameters/indices.rb
|
310
158
|
- lib/chewy/search/parameters/indices_boost.rb
|
159
|
+
- lib/chewy/search/parameters/knn.rb
|
311
160
|
- lib/chewy/search/parameters/limit.rb
|
312
161
|
- lib/chewy/search/parameters/load.rb
|
313
162
|
- lib/chewy/search/parameters/min_score.rb
|
@@ -330,7 +179,7 @@ files:
|
|
330
179
|
- lib/chewy/search/parameters/terminate_after.rb
|
331
180
|
- lib/chewy/search/parameters/timeout.rb
|
332
181
|
- lib/chewy/search/parameters/track_scores.rb
|
333
|
-
- lib/chewy/search/parameters/
|
182
|
+
- lib/chewy/search/parameters/track_total_hits.rb
|
334
183
|
- lib/chewy/search/parameters/version.rb
|
335
184
|
- lib/chewy/search/query_proxy.rb
|
336
185
|
- lib/chewy/search/request.rb
|
@@ -341,45 +190,43 @@ files:
|
|
341
190
|
- lib/chewy/strategy.rb
|
342
191
|
- lib/chewy/strategy/active_job.rb
|
343
192
|
- lib/chewy/strategy/atomic.rb
|
193
|
+
- lib/chewy/strategy/atomic_no_refresh.rb
|
344
194
|
- lib/chewy/strategy/base.rb
|
345
195
|
- lib/chewy/strategy/bypass.rb
|
346
|
-
- lib/chewy/strategy/
|
347
|
-
- lib/chewy/strategy/
|
196
|
+
- lib/chewy/strategy/delayed_sidekiq.rb
|
197
|
+
- lib/chewy/strategy/delayed_sidekiq/scheduler.rb
|
198
|
+
- lib/chewy/strategy/delayed_sidekiq/worker.rb
|
199
|
+
- lib/chewy/strategy/lazy_sidekiq.rb
|
348
200
|
- lib/chewy/strategy/sidekiq.rb
|
349
201
|
- lib/chewy/strategy/urgent.rb
|
350
|
-
- lib/chewy/type.rb
|
351
|
-
- lib/chewy/type/actions.rb
|
352
|
-
- lib/chewy/type/adapter/active_record.rb
|
353
|
-
- lib/chewy/type/adapter/base.rb
|
354
|
-
- lib/chewy/type/adapter/mongoid.rb
|
355
|
-
- lib/chewy/type/adapter/object.rb
|
356
|
-
- lib/chewy/type/adapter/orm.rb
|
357
|
-
- lib/chewy/type/adapter/sequel.rb
|
358
|
-
- lib/chewy/type/crutch.rb
|
359
|
-
- lib/chewy/type/import.rb
|
360
|
-
- lib/chewy/type/import/bulk_builder.rb
|
361
|
-
- lib/chewy/type/import/bulk_request.rb
|
362
|
-
- lib/chewy/type/import/journal_builder.rb
|
363
|
-
- lib/chewy/type/import/routine.rb
|
364
|
-
- lib/chewy/type/mapping.rb
|
365
|
-
- lib/chewy/type/observe.rb
|
366
|
-
- lib/chewy/type/syncer.rb
|
367
|
-
- lib/chewy/type/witchcraft.rb
|
368
|
-
- lib/chewy/type/wrapper.rb
|
369
202
|
- lib/chewy/version.rb
|
370
203
|
- lib/generators/chewy/install_generator.rb
|
371
204
|
- lib/generators/templates/chewy.yml
|
372
|
-
- lib/sequel/plugins/chewy_observe.rb
|
373
205
|
- lib/tasks/chewy.rake
|
374
206
|
- migration_guide.md
|
375
207
|
- spec/chewy/config_spec.rb
|
208
|
+
- spec/chewy/elastic_client_spec.rb
|
376
209
|
- spec/chewy/fields/base_spec.rb
|
377
210
|
- spec/chewy/fields/root_spec.rb
|
378
211
|
- spec/chewy/fields/time_fields_spec.rb
|
379
212
|
- spec/chewy/index/actions_spec.rb
|
213
|
+
- spec/chewy/index/adapter/active_record_spec.rb
|
214
|
+
- spec/chewy/index/adapter/object_spec.rb
|
380
215
|
- spec/chewy/index/aliases_spec.rb
|
216
|
+
- spec/chewy/index/import/bulk_builder_spec.rb
|
217
|
+
- spec/chewy/index/import/bulk_request_spec.rb
|
218
|
+
- spec/chewy/index/import/journal_builder_spec.rb
|
219
|
+
- spec/chewy/index/import/routine_spec.rb
|
220
|
+
- spec/chewy/index/import_spec.rb
|
221
|
+
- spec/chewy/index/mapping_spec.rb
|
222
|
+
- spec/chewy/index/observe/active_record_methods_spec.rb
|
223
|
+
- spec/chewy/index/observe/callback_spec.rb
|
224
|
+
- spec/chewy/index/observe_spec.rb
|
381
225
|
- spec/chewy/index/settings_spec.rb
|
382
226
|
- spec/chewy/index/specification_spec.rb
|
227
|
+
- spec/chewy/index/syncer_spec.rb
|
228
|
+
- spec/chewy/index/witchcraft_spec.rb
|
229
|
+
- spec/chewy/index/wrapper_spec.rb
|
383
230
|
- spec/chewy/index_spec.rb
|
384
231
|
- spec/chewy/journal_spec.rb
|
385
232
|
- spec/chewy/minitest/helpers_spec.rb
|
@@ -387,23 +234,26 @@ files:
|
|
387
234
|
- spec/chewy/multi_search_spec.rb
|
388
235
|
- spec/chewy/rake_helper_spec.rb
|
389
236
|
- spec/chewy/repository_spec.rb
|
237
|
+
- spec/chewy/rspec/build_query_spec.rb
|
238
|
+
- spec/chewy/rspec/helpers_spec.rb
|
390
239
|
- spec/chewy/rspec/update_index_spec.rb
|
391
240
|
- spec/chewy/runtime/version_spec.rb
|
392
241
|
- spec/chewy/runtime_spec.rb
|
393
242
|
- spec/chewy/search/loader_spec.rb
|
394
243
|
- spec/chewy/search/pagination/kaminari_examples.rb
|
395
244
|
- spec/chewy/search/pagination/kaminari_spec.rb
|
396
|
-
- spec/chewy/search/pagination/will_paginate_examples.rb
|
397
|
-
- spec/chewy/search/pagination/will_paginate_spec.rb
|
398
245
|
- spec/chewy/search/parameters/aggs_spec.rb
|
399
246
|
- spec/chewy/search/parameters/bool_storage_examples.rb
|
247
|
+
- spec/chewy/search/parameters/collapse_spec.rb
|
400
248
|
- spec/chewy/search/parameters/docvalue_fields_spec.rb
|
401
249
|
- spec/chewy/search/parameters/explain_spec.rb
|
402
250
|
- spec/chewy/search/parameters/filter_spec.rb
|
403
251
|
- spec/chewy/search/parameters/hash_storage_examples.rb
|
404
252
|
- spec/chewy/search/parameters/highlight_spec.rb
|
253
|
+
- spec/chewy/search/parameters/ignore_unavailable_spec.rb
|
405
254
|
- spec/chewy/search/parameters/indices_spec.rb
|
406
255
|
- spec/chewy/search/parameters/integer_storage_examples.rb
|
256
|
+
- spec/chewy/search/parameters/knn_spec.rb
|
407
257
|
- spec/chewy/search/parameters/limit_spec.rb
|
408
258
|
- spec/chewy/search/parameters/load_spec.rb
|
409
259
|
- spec/chewy/search/parameters/min_score_spec.rb
|
@@ -429,7 +279,7 @@ files:
|
|
429
279
|
- spec/chewy/search/parameters/terminate_after_spec.rb
|
430
280
|
- spec/chewy/search/parameters/timeout_spec.rb
|
431
281
|
- spec/chewy/search/parameters/track_scores_spec.rb
|
432
|
-
- spec/chewy/search/parameters/
|
282
|
+
- spec/chewy/search/parameters/track_total_hits_spec.rb
|
433
283
|
- spec/chewy/search/parameters/version_spec.rb
|
434
284
|
- spec/chewy/search/parameters_spec.rb
|
435
285
|
- spec/chewy/search/query_proxy_spec.rb
|
@@ -439,38 +289,22 @@ files:
|
|
439
289
|
- spec/chewy/search_spec.rb
|
440
290
|
- spec/chewy/stash_spec.rb
|
441
291
|
- spec/chewy/strategy/active_job_spec.rb
|
292
|
+
- spec/chewy/strategy/atomic_no_refresh_spec.rb
|
442
293
|
- spec/chewy/strategy/atomic_spec.rb
|
443
|
-
- spec/chewy/strategy/
|
444
|
-
- spec/chewy/strategy/
|
294
|
+
- spec/chewy/strategy/delayed_sidekiq_spec.rb
|
295
|
+
- spec/chewy/strategy/lazy_sidekiq_spec.rb
|
445
296
|
- spec/chewy/strategy/sidekiq_spec.rb
|
446
297
|
- spec/chewy/strategy_spec.rb
|
447
|
-
- spec/chewy/type/actions_spec.rb
|
448
|
-
- spec/chewy/type/adapter/active_record_spec.rb
|
449
|
-
- spec/chewy/type/adapter/mongoid_spec.rb
|
450
|
-
- spec/chewy/type/adapter/object_spec.rb
|
451
|
-
- spec/chewy/type/adapter/sequel_spec.rb
|
452
|
-
- spec/chewy/type/import/bulk_builder_spec.rb
|
453
|
-
- spec/chewy/type/import/bulk_request_spec.rb
|
454
|
-
- spec/chewy/type/import/journal_builder_spec.rb
|
455
|
-
- spec/chewy/type/import/routine_spec.rb
|
456
|
-
- spec/chewy/type/import_spec.rb
|
457
|
-
- spec/chewy/type/mapping_spec.rb
|
458
|
-
- spec/chewy/type/observe_spec.rb
|
459
|
-
- spec/chewy/type/syncer_spec.rb
|
460
|
-
- spec/chewy/type/witchcraft_spec.rb
|
461
|
-
- spec/chewy/type/wrapper_spec.rb
|
462
|
-
- spec/chewy/type_spec.rb
|
463
298
|
- spec/chewy_spec.rb
|
464
299
|
- spec/spec_helper.rb
|
465
300
|
- spec/support/active_record.rb
|
466
301
|
- spec/support/class_helpers.rb
|
467
302
|
- spec/support/fail_helpers.rb
|
468
|
-
- spec/support/mongoid.rb
|
469
|
-
- spec/support/sequel.rb
|
470
303
|
homepage: https://github.com/toptal/chewy
|
471
304
|
licenses:
|
472
305
|
- MIT
|
473
|
-
metadata:
|
306
|
+
metadata:
|
307
|
+
rubygems_mfa_required: 'true'
|
474
308
|
post_install_message:
|
475
309
|
rdoc_options: []
|
476
310
|
require_paths:
|
@@ -486,103 +320,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
486
320
|
- !ruby/object:Gem::Version
|
487
321
|
version: '0'
|
488
322
|
requirements: []
|
489
|
-
rubygems_version: 3.
|
323
|
+
rubygems_version: 3.2.33
|
490
324
|
signing_key:
|
491
325
|
specification_version: 4
|
492
326
|
summary: Elasticsearch ODM client wrapper
|
493
|
-
test_files:
|
494
|
-
- spec/chewy/config_spec.rb
|
495
|
-
- spec/chewy/fields/base_spec.rb
|
496
|
-
- spec/chewy/fields/root_spec.rb
|
497
|
-
- spec/chewy/fields/time_fields_spec.rb
|
498
|
-
- spec/chewy/index/actions_spec.rb
|
499
|
-
- spec/chewy/index/aliases_spec.rb
|
500
|
-
- spec/chewy/index/settings_spec.rb
|
501
|
-
- spec/chewy/index/specification_spec.rb
|
502
|
-
- spec/chewy/index_spec.rb
|
503
|
-
- spec/chewy/journal_spec.rb
|
504
|
-
- spec/chewy/minitest/helpers_spec.rb
|
505
|
-
- spec/chewy/minitest/search_index_receiver_spec.rb
|
506
|
-
- spec/chewy/multi_search_spec.rb
|
507
|
-
- spec/chewy/rake_helper_spec.rb
|
508
|
-
- spec/chewy/repository_spec.rb
|
509
|
-
- spec/chewy/rspec/update_index_spec.rb
|
510
|
-
- spec/chewy/runtime/version_spec.rb
|
511
|
-
- spec/chewy/runtime_spec.rb
|
512
|
-
- spec/chewy/search/loader_spec.rb
|
513
|
-
- spec/chewy/search/pagination/kaminari_examples.rb
|
514
|
-
- spec/chewy/search/pagination/kaminari_spec.rb
|
515
|
-
- spec/chewy/search/pagination/will_paginate_examples.rb
|
516
|
-
- spec/chewy/search/pagination/will_paginate_spec.rb
|
517
|
-
- spec/chewy/search/parameters/aggs_spec.rb
|
518
|
-
- spec/chewy/search/parameters/bool_storage_examples.rb
|
519
|
-
- spec/chewy/search/parameters/docvalue_fields_spec.rb
|
520
|
-
- spec/chewy/search/parameters/explain_spec.rb
|
521
|
-
- spec/chewy/search/parameters/filter_spec.rb
|
522
|
-
- spec/chewy/search/parameters/hash_storage_examples.rb
|
523
|
-
- spec/chewy/search/parameters/highlight_spec.rb
|
524
|
-
- spec/chewy/search/parameters/indices_spec.rb
|
525
|
-
- spec/chewy/search/parameters/integer_storage_examples.rb
|
526
|
-
- spec/chewy/search/parameters/limit_spec.rb
|
527
|
-
- spec/chewy/search/parameters/load_spec.rb
|
528
|
-
- spec/chewy/search/parameters/min_score_spec.rb
|
529
|
-
- spec/chewy/search/parameters/none_spec.rb
|
530
|
-
- spec/chewy/search/parameters/offset_spec.rb
|
531
|
-
- spec/chewy/search/parameters/order_spec.rb
|
532
|
-
- spec/chewy/search/parameters/post_filter_spec.rb
|
533
|
-
- spec/chewy/search/parameters/preference_spec.rb
|
534
|
-
- spec/chewy/search/parameters/profile_spec.rb
|
535
|
-
- spec/chewy/search/parameters/query_spec.rb
|
536
|
-
- spec/chewy/search/parameters/query_storage_examples.rb
|
537
|
-
- spec/chewy/search/parameters/request_cache_spec.rb
|
538
|
-
- spec/chewy/search/parameters/rescore_spec.rb
|
539
|
-
- spec/chewy/search/parameters/script_fields_spec.rb
|
540
|
-
- spec/chewy/search/parameters/search_after_spec.rb
|
541
|
-
- spec/chewy/search/parameters/search_type_spec.rb
|
542
|
-
- spec/chewy/search/parameters/source_spec.rb
|
543
|
-
- spec/chewy/search/parameters/storage_spec.rb
|
544
|
-
- spec/chewy/search/parameters/stored_fields_spec.rb
|
545
|
-
- spec/chewy/search/parameters/string_array_storage_examples.rb
|
546
|
-
- spec/chewy/search/parameters/string_storage_examples.rb
|
547
|
-
- spec/chewy/search/parameters/suggest_spec.rb
|
548
|
-
- spec/chewy/search/parameters/terminate_after_spec.rb
|
549
|
-
- spec/chewy/search/parameters/timeout_spec.rb
|
550
|
-
- spec/chewy/search/parameters/track_scores_spec.rb
|
551
|
-
- spec/chewy/search/parameters/types_spec.rb
|
552
|
-
- spec/chewy/search/parameters/version_spec.rb
|
553
|
-
- spec/chewy/search/parameters_spec.rb
|
554
|
-
- spec/chewy/search/query_proxy_spec.rb
|
555
|
-
- spec/chewy/search/request_spec.rb
|
556
|
-
- spec/chewy/search/response_spec.rb
|
557
|
-
- spec/chewy/search/scrolling_spec.rb
|
558
|
-
- spec/chewy/search_spec.rb
|
559
|
-
- spec/chewy/stash_spec.rb
|
560
|
-
- spec/chewy/strategy/active_job_spec.rb
|
561
|
-
- spec/chewy/strategy/atomic_spec.rb
|
562
|
-
- spec/chewy/strategy/resque_spec.rb
|
563
|
-
- spec/chewy/strategy/shoryuken_spec.rb
|
564
|
-
- spec/chewy/strategy/sidekiq_spec.rb
|
565
|
-
- spec/chewy/strategy_spec.rb
|
566
|
-
- spec/chewy/type/actions_spec.rb
|
567
|
-
- spec/chewy/type/adapter/active_record_spec.rb
|
568
|
-
- spec/chewy/type/adapter/mongoid_spec.rb
|
569
|
-
- spec/chewy/type/adapter/object_spec.rb
|
570
|
-
- spec/chewy/type/adapter/sequel_spec.rb
|
571
|
-
- spec/chewy/type/import/bulk_builder_spec.rb
|
572
|
-
- spec/chewy/type/import/bulk_request_spec.rb
|
573
|
-
- spec/chewy/type/import/journal_builder_spec.rb
|
574
|
-
- spec/chewy/type/import/routine_spec.rb
|
575
|
-
- spec/chewy/type/import_spec.rb
|
576
|
-
- spec/chewy/type/mapping_spec.rb
|
577
|
-
- spec/chewy/type/observe_spec.rb
|
578
|
-
- spec/chewy/type/syncer_spec.rb
|
579
|
-
- spec/chewy/type/witchcraft_spec.rb
|
580
|
-
- spec/chewy/type/wrapper_spec.rb
|
581
|
-
- spec/chewy/type_spec.rb
|
582
|
-
- spec/chewy_spec.rb
|
583
|
-
- spec/spec_helper.rb
|
584
|
-
- spec/support/active_record.rb
|
585
|
-
- spec/support/class_helpers.rb
|
586
|
-
- spec/support/fail_helpers.rb
|
587
|
-
- spec/support/mongoid.rb
|
588
|
-
- spec/support/sequel.rb
|
327
|
+
test_files: []
|