chewy 6.0.0 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d885732170ee400be6fc8df2f567afb384e752235edaf57ae58624f6907fb0d
4
- data.tar.gz: 9d1aa6212b67c16a3e6cb7e4fec7c9b76ac768099d0717fbe97f16c1930584af
3
+ metadata.gz: c03ccd9ded0ee8f14a062ef7ed00604a2830b3a2d74ecc2dbdfacb6e2287ff69
4
+ data.tar.gz: 9d88e52adef73db5324a59d4f943cc8f870f7daac47fa23ace747f6bfd5e179a
5
5
  SHA512:
6
- metadata.gz: 4c1809614999dc9c8e8f4ac0763e4aca663fa7f118bc4cedf17f7bef255f8161b19cfc94daeb34dfb2729dc68756726f647013ce63bc77d9596255b07b153239
7
- data.tar.gz: 73ad27cef56399d39974d837eb374279f1a9cbd84e6103c9d4aba6e151d0200f3b63075056b6ebff02e9c7d06bda1bd3ea4ab736e683cb60353b537da52757ea
6
+ metadata.gz: 7f1b0e62272ebb745d544ebcaa35fe593874ddcbc56aac806907a0c72fa141a359af8f15887e9c4b7426dd92e289e66ded1e68963225ac0375c0009756d48ff3
7
+ data.tar.gz: d90b624d9cfddc6e3bdf2985e535e25471209ad40d203f6c29384ddcdfe36630d9a348ff3fa8b1cc37d93da194224905df179329765061e0d83a6b2ec4ed650c
data/.circleci/config.yml CHANGED
@@ -108,7 +108,7 @@ jobs:
108
108
  rspec-ruby-26-activerecord52:
109
109
  docker:
110
110
  - image: circleci/ruby:2.6
111
- - image: docker.elastic.co/elasticsearch/elasticsearch:5.6.7
111
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
112
112
  environment:
113
113
  <<: *es-env
114
114
  working_directory: ~/repo
@@ -120,7 +120,7 @@ jobs:
120
120
  rspec-ruby-26-activerecord60:
121
121
  docker:
122
122
  - image: circleci/ruby:2.6
123
- - image: docker.elastic.co/elasticsearch/elasticsearch:5.6.7
123
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
124
124
  environment:
125
125
  <<: *es-env
126
126
  working_directory: ~/repo
@@ -132,7 +132,7 @@ jobs:
132
132
  rspec-ruby-26-activerecord61:
133
133
  docker:
134
134
  - image: circleci/ruby:2.6
135
- - image: docker.elastic.co/elasticsearch/elasticsearch:5.6.7
135
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
136
136
  environment:
137
137
  <<: *es-env
138
138
  working_directory: ~/repo
@@ -145,7 +145,7 @@ jobs:
145
145
  docker:
146
146
  - image: circleci/ruby:2.6
147
147
  - image: circleci/mongo:4.2.5
148
- - image: docker.elastic.co/elasticsearch/elasticsearch:5.6.7
148
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
149
149
  environment:
150
150
  <<: *es-env
151
151
  working_directory: ~/repo
@@ -157,7 +157,7 @@ jobs:
157
157
  rspec-ruby-27-activerecord52:
158
158
  docker:
159
159
  - image: circleci/ruby:2.7
160
- - image: docker.elastic.co/elasticsearch/elasticsearch:5.6.7
160
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
161
161
  environment:
162
162
  <<: *es-env
163
163
  working_directory: ~/repo
@@ -169,7 +169,7 @@ jobs:
169
169
  rspec-ruby-27-activerecord60:
170
170
  docker:
171
171
  - image: circleci/ruby:2.7
172
- - image: docker.elastic.co/elasticsearch/elasticsearch:5.6.7
172
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
173
173
  environment:
174
174
  <<: *es-env
175
175
  working_directory: ~/repo
@@ -181,7 +181,7 @@ jobs:
181
181
  rspec-ruby-27-activerecord61:
182
182
  docker:
183
183
  - image: circleci/ruby:2.7
184
- - image: docker.elastic.co/elasticsearch/elasticsearch:5.6.7
184
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
185
185
  environment:
186
186
  <<: *es-env
187
187
  working_directory: ~/repo
@@ -194,7 +194,7 @@ jobs:
194
194
  docker:
195
195
  - image: circleci/ruby:2.7
196
196
  - image: circleci/mongo:4.2.5
197
- - image: docker.elastic.co/elasticsearch/elasticsearch:5.6.7
197
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
198
198
  environment:
199
199
  <<: *es-env
200
200
  working_directory: ~/repo
@@ -206,7 +206,7 @@ jobs:
206
206
  rspec-ruby-30-activerecord61:
207
207
  docker:
208
208
  - image: circleci/ruby:3.0
209
- - image: docker.elastic.co/elasticsearch/elasticsearch:5.6.7
209
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
210
210
  environment:
211
211
  <<: *es-env
212
212
  working_directory: ~/repo
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: Bug Report
3
+ about: Report an issue with Chewy you've discovered.
4
+ ---
5
+
6
+ *Be clear, concise and precise in your description of the problem.
7
+ Open an issue with a descriptive title and a summary in grammatically correct,
8
+ complete sentences.*
9
+
10
+ *Use the template below when reporting bugs. Please, make sure that
11
+ you're running the latest stable Chewy and that the problem you're reporting
12
+ hasn't been reported (and potentially fixed) already.*
13
+
14
+ *Before filing the ticket you should replace all text above the horizontal
15
+ rule with your own words.*
16
+
17
+ --------
18
+
19
+ ## Expected behavior
20
+
21
+ Describe here how you expected Chewy to behave in this particular situation.
22
+
23
+ ## Actual behavior
24
+
25
+ Describe here what actually happened.
26
+
27
+ ## Steps to reproduce the problem
28
+
29
+ This is extremely important! Providing us with a reliable way to reproduce
30
+ a problem will expedite its solution.
31
+
32
+ ## Version Information
33
+
34
+ Share here essential version information such as:
35
+
36
+ * Chewy version
37
+ * Elasticsearch version
38
+ * Ruby version
39
+ * Rails version
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature Request
3
+ about: Suggest new Chewy features or improvements to existing features.
4
+ ---
5
+
6
+ ## Is your feature request related to a problem? Please describe.
7
+
8
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9
+
10
+ ## Describe the solution you'd like
11
+
12
+ A clear and concise description of what you want to happen.
13
+
14
+ ## Describe alternatives you've considered
15
+
16
+ A clear and concise description of any alternative solutions or features you've considered.
17
+
18
+ ## Additional context
19
+
20
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,16 @@
1
+ **Replace this text with a summary of the changes in your PR.
2
+ The more detailed you are, the better.**
3
+
4
+ -----------------
5
+
6
+ Before submitting the PR make sure the following are checked:
7
+
8
+ * [ ] The PR relates to *only* one subject with a clear title and description in grammatically correct, complete sentences.
9
+ * [ ] Wrote [good commit messages][1].
10
+ * [ ] Commit message starts with `[Fix #issue-number]` (if the related issue exists).
11
+ * [ ] Feature branch is up-to-date with `master` (if not - rebase it).
12
+ * [ ] Squashed related commits together.
13
+ * [ ] Added tests.
14
+ * [ ] Added an entry to the changelog if the new code introduces user-observable changes. See [changelog entry format](https://github.com/toptal/chewy/blob/master/CONTRIBUTING.md#changelog-entry-format) for details.
15
+
16
+ [1]: https://chris.beams.io/posts/git-commit/
data/CHANGELOG.md CHANGED
@@ -1,99 +1,111 @@
1
- # master
1
+ # Changelog
2
2
 
3
- # Version 6.0.0 (2021-02-11)
3
+ ## master (unreleased)
4
4
 
5
- ## Breaking changes
5
+ ### New Features
6
6
 
7
- * [#743](https://github.com/toptal/chewy/pull/743): Elasticsearch 6.x support added. See [migration guide](migration_guide.md) & ES [breaking changes](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/breaking-changes-6.0.html). Removed legacy DSL support. Removed support for ES < 5 ([@mrzasa][], [@konalegi][], [@rabotyaga][])
7
+ ### Changes
8
8
 
9
- ## Bug fixes
9
+ ### Bugs Fixed
10
10
 
11
- * [#695](https://github.com/toptal/chewy/pull/695): Clear the scroll by id after completing scroll_batches ([@socialchorus][])
12
- * [#749](https://github.com/toptal/chewy/pull/749): Avoid importing everything when given an empty relation ([@JF-Lalonde][], [@dalthon][])
13
- * [#736](https://github.com/toptal/chewy/pull/736): Fix nil children when using witchcraft ([@taylor-au][])
11
+ ## 7.0.0 (2021-02-22)
14
12
 
15
- ## Changes
13
+ ### New Features
16
14
 
17
- * [#751](https://github.com/toptal/chewy/pull/751): Add [Multi Search API](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-multi-search.html) support ([@mpeychich][], [@dalthon][])
18
- * [#755](https://github.com/toptal/chewy/pull/755): `attribute_highlights` returns an array of highlights ([@musaffa][], [@dalthon][])
19
- * [#753](https://github.com/toptal/chewy/pull/753): Add support for direct_import parameter to skip objects reloading ([@TikiTDO][], [@dalthon][])
20
- * [#739](https://github.com/toptal/chewy/pull/739): Remove explicit `main` branch dependencies on rspec* gems after `rspec-mocks` 3.10.2 is released ([@rabotyaga][])
15
+ * [#763](https://github.com/toptal/chewy/pull/763): Added support for Elasticsearch 7 ([@rabotyaga][])
21
16
 
22
- # Version 5.2.0 (2021-01-28)
17
+ ### Changes
23
18
 
24
- ## Changes
19
+ * [#757](https://github.com/toptal/chewy/pull/757): **(Breaking)** Fix `Chewy::Index.index` & `Chewy::Index.aliases` to correctly report indexes and aliases ([@mpeychich][], [@dalthon][])
20
+ * [#761](https://github.com/toptal/chewy/pull/761): Avoid fetching scope data to check if it is blank ([@dalthon][])
25
21
 
26
- * [#734](https://github.com/toptal/chewy/pull/734): Add support for Ruby 3 ([@lowang][])
27
- * [#735](https://github.com/toptal/chewy/pull/735): Correct deprecation warning for Elasticsearch 5.6 to 6: empty query for`_delete_by_query`, delete by alias, `index_already_exists_exception` renaming ([@bhacaz][])
28
- * [#733](https://github.com/toptal/chewy/pull/733): Update gemspec dependencies for Rails. Update CI gemfiles and matrix to tests against current LTS Rails versions. ([@bhacaz][])
29
- * Tweak some wording and formatting; add a note about compatibility; update copyright; remove broken logo; update the CI badge ([@bbatsov][])
30
- * [#714](https://github.com/toptal/chewy/pull/714): Update instructions for AWS ElasticSearch ([@olancheg][])
31
- * [#728](https://github.com/toptal/chewy/pull/728): Fix more ruby 2.7 keyword params deprecation warnings ([@aglushkov][])
32
- * [#715](https://github.com/toptal/chewy/pull/715): Fixed all deprecation warnings in Ruby 2.7 ([@gseddon][])
33
- * [#718](https://github.com/toptal/chewy/pull/718): Added Ruby 2.7 to CircleCI config ([@mrzasa][])
34
- * [#707](https://github.com/toptal/chewy/pull/707): Allow configuration of Active Job queue name ([@mrzasa][])
35
- * [#711](https://github.com/toptal/chewy/pull/711): Setup CI on CircleCI ([@mrzasa][])
36
- * [#710](https://github.com/toptal/chewy/pull/710): Fix deprecation warning for contructing new BigDecimal ([@AlexVPopov][])
37
-
38
- # Version 5.1.0 (2019-09-24)
39
-
40
- ## Breaking changes
22
+ ## 6.0.0 (2021-02-11)
41
23
 
42
- * [#657](https://github.com/toptal/chewy/pull/657): Add support for multiple indices in request ([@pyromaniac][])
43
- * [#647](https://github.com/toptal/chewy/pull/647): Support `search_type`, `request_cache`, and `allow_partial_search_results` as query string parameters ([@mattzollinhofer][])
24
+ ### Changes
44
25
 
45
- ## Changes
26
+ * [#743](https://github.com/toptal/chewy/pull/743): **(Breaking)** Elasticsearch 6.x support added. See the [migration guide](migration_guide.md) & ES [breaking changes](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/breaking-changes-6.0.html). Removed legacy DSL support. Removed support for ES < 5. ([@mrzasa][], [@konalegi][], [@rabotyaga][])
27
+ * [#751](https://github.com/toptal/chewy/pull/751): Add [Multi Search API](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-multi-search.html) support. ([@mpeychich][], [@dalthon][])
28
+ * [#755](https://github.com/toptal/chewy/pull/755): `attribute_highlights` returns an array of highlights. ([@musaffa][], [@dalthon][])
29
+ * [#753](https://github.com/toptal/chewy/pull/753): Add support for direct_import parameter to skip objects reloading. ([@TikiTDO][], [@dalthon][])
30
+ * [#739](https://github.com/toptal/chewy/pull/739): Remove explicit `main` branch dependencies on `rspec-*` gems after `rspec-mocks` 3.10.2 is released. ([@rabotyaga][])
46
31
 
47
- * [#606](https://github.com/toptal/chewy/pull/606): Speed up imports when `bulk_size` is specified ([@yahooguntu][])
48
- * [#682](https://github.com/toptal/chewy/pull/682): Insert `RequestStrategy` middleware before `ActionDispatch::ShowExceptions` ([@dck][])
32
+ ### Bugs Fixed
49
33
 
50
- # Version 5.0.0 (2018-02-13)
34
+ * [#695](https://github.com/toptal/chewy/pull/695): Clear the scroll by id after completing `scroll_batches`. ([@socialchorus][])
35
+ * [#749](https://github.com/toptal/chewy/pull/749): Avoid importing everything when given an empty relation. ([@JF-Lalonde][], [@dalthon][])
36
+ * [#736](https://github.com/toptal/chewy/pull/736): Fix nil children when using witchcraft. ([@taylor-au][])
51
37
 
52
- ## Breaking changes
38
+ ## 5.2.0 (2021-01-28)
53
39
 
54
- * Try to align the gem version with the ElasticSearch version we support
55
- * `Chewy.default_field_type` is `text` now.
56
- * `Chewy::Stash` was split onto two indexes - `Chewy::Stash::Specification` and `Chewy::Stash::Journal`
57
- * Data for journal and specification is stored in binary fields base64-encoded to bypass the limits of other fields.
58
- * [#626](https://github.com/toptal/chewy/pull/626): Don't underscore suggested index name ([@dm1try][])
40
+ ### Changes
59
41
 
60
- ## Changes
61
-
62
- * [#598](https://github.com/toptal/chewy/pull/598): `pipeline` import option support ([@eManPrague][])
63
- * [#625](https://github.com/toptal/chewy/pull/625): Proper Rails check ([@nattfodd][])
64
- * [#623](https://github.com/toptal/chewy/pull/623): Bypass strategy performance improvements ([@DNNX][])
65
- * [#620](https://github.com/toptal/chewy/pull/620): Avoid index update calls for empty data ([@robertasg][])
42
+ * [#734](https://github.com/toptal/chewy/pull/734): Add support for Ruby 3. ([@lowang][])
43
+ * [#735](https://github.com/toptal/chewy/pull/735): Correct deprecation warning for Elasticsearch 5.6 to 6: empty query for`_delete_by_query`, delete by alias, `index_already_exists_exception` renaming. ([@bhacaz][])
44
+ * [#733](https://github.com/toptal/chewy/pull/733): Update gemspec dependencies for Rails. Update CI gemfiles and matrix to tests against current LTS Rails versions. ([@bhacaz][])
45
+ * Tweak some wording and formatting; add a note about compatibility; update copyright; remove broken logo; update the CI badge. ([@bbatsov][])
46
+ * [#714](https://github.com/toptal/chewy/pull/714): Update instructions for AWS ElasticSearch. ([@olancheg][])
47
+ * [#728](https://github.com/toptal/chewy/pull/728): Fix more ruby 2.7 keyword params deprecation warnings. ([@aglushkov][])
48
+ * [#715](https://github.com/toptal/chewy/pull/715): Fixed all deprecation warnings in Ruby 2.7. ([@gseddon][])
49
+ * [#718](https://github.com/toptal/chewy/pull/718): Added Ruby 2.7 to CircleCI config. ([@mrzasa][])
50
+ * [#707](https://github.com/toptal/chewy/pull/707): Allow configuration of Active Job queue name. ([@mrzasa][])
51
+ * [#711](https://github.com/toptal/chewy/pull/711): Setup CI on CircleCI. ([@mrzasa][])
52
+ * [#710](https://github.com/toptal/chewy/pull/710): Fix deprecation warning for constructing new `BigDecimal`. ([@AlexVPopov][])
53
+
54
+ ## 5.1.0 (2019-09-24)
55
+
56
+ ### Changes
57
+
58
+ * [#657](https://github.com/toptal/chewy/pull/657): **(Breaking)** Add support for multiple indices in request. ([@pyromaniac][])
59
+ * [#647](https://github.com/toptal/chewy/pull/647): **(Breaking)** Support `search_type`, `request_cache`, and `allow_partial_search_results` as query string parameters. ([@mattzollinhofer][])
60
+ * [#606](https://github.com/toptal/chewy/pull/606): Speed up imports when `bulk_size` is specified. ([@yahooguntu][])
61
+ * [#682](https://github.com/toptal/chewy/pull/682): Insert `RequestStrategy` middleware before `ActionDispatch::ShowExceptions`. ([@dck][])
62
+
63
+ ## 5.0.0 (2018-02-13)
64
+
65
+ ### Changes
66
+
67
+ * **(Breaking)** Align the gem version with the most recent ElasticSearch version we support.
68
+ * **(Breaking)** `Chewy.default_field_type` is `text` now.
69
+ * **(Breaking)** `Chewy::Stash` was split onto two indexes - `Chewy::Stash::Specification` and `Chewy::Stash::Journal`.
70
+ * **(Breaking)** Data for journal and specification is stored in binary fields base64-encoded to bypass the limits of other fields.
71
+ * **(Breaking)** [#626](https://github.com/toptal/chewy/pull/626): Don't underscore suggested index name. ([@dm1try][])
72
+ * [#598](https://github.com/toptal/chewy/pull/598): `pipeline` import option support. ([@eManPrague][])
73
+ * [#625](https://github.com/toptal/chewy/pull/625): Proper Rails check. ([@nattfodd][])
74
+ * [#623](https://github.com/toptal/chewy/pull/623): Bypass strategy performance improvements. ([@DNNX][])
75
+ * [#620](https://github.com/toptal/chewy/pull/620): Avoid index update calls for empty data. ([@robertasg][])
66
76
  * Do not underscore suggested index name on `Chewy::Index.index_name` call.
67
77
  * It is possible now to call `root` method several times inside a single type definition, the options will be merged. Also, the block isn't required anymore.
68
- * [#565](https://github.com/toptal/chewy/pull/565): Fixed some Sequel deprecation warnings ([@arturtr][])
69
- * [#577](https://github.com/toptal/chewy/pull/577): Fixed some Sequel deprecation warnings ([@matchbookmac][])
78
+ * [#565](https://github.com/toptal/chewy/pull/565): Fixed some Sequel deprecation warnings. ([@arturtr][])
79
+ * [#577](https://github.com/toptal/chewy/pull/577): Fixed some Sequel deprecation warnings. ([@matchbookmac][])
80
+
81
+ ### Bugs Fixed
70
82
 
71
- ## Bugfixes
83
+ * [#593](https://github.com/toptal/chewy/pull/593): Fixed index settings logic error. ([@yahooguntu][])
84
+ * [#567](https://github.com/toptal/chewy/pull/567): Missed check in higlight method. ([@heartfulbird][])
72
85
 
73
- * [#593](https://github.com/toptal/chewy/pull/593): Fixed index settings logic error ([@yahooguntu][])
74
- * [#567](https://github.com/toptal/chewy/pull/567): Missed check in higlight method ([@heartfulbird][])
86
+ -----------------------------------------------------------------------------------
75
87
 
76
- # Version 0.10.1
88
+ ## 0.10.1
77
89
 
78
- ## Changes
90
+ ### Changes
79
91
 
80
92
  * [#558](https://github.com/toptal/chewy/pull/558): Improved parallel worker titles
81
93
 
82
- ## Bugfixes
94
+ ### Bugs Fixed
83
95
 
84
96
  * [#557](https://github.com/toptal/chewy/pull/557): Fixed request strategy initial debug message
85
97
  * [#556](https://github.com/toptal/chewy/pull/556): Fixed will objects paginated array initialization when pagination was not used
86
98
  * [#555](https://github.com/toptal/chewy/pull/555): Fixed fields symbol/string value
87
99
  * [#554](https://github.com/toptal/chewy/pull/554): Fixed root field value proc
88
100
 
89
- # Version 0.10.0
101
+ ## 0.10.0
90
102
 
91
- ## Breaking changes
103
+ ### Breaking changes
92
104
 
93
105
  * Changed behavior of `Chewy::Index.index_name`, it doesn't cache the values anymore.
94
106
  * Journal interfaces, related code and rake tasks were completely refactored and are not compatible with the previous version.
95
107
 
96
- ## Changes
108
+ ### Changes
97
109
 
98
110
  * [#543](https://github.com/toptal/chewy/pull/543): Less noisy strategies logging ([@Borzik][])
99
111
  * Parallel import and the corresponding rake tasks.
@@ -116,9 +128,9 @@
116
128
  * [#467](https://github.com/toptal/chewy/pull/467): Bulk indexing optimizations with new additional options ([@eproulx-petalmd][])
117
129
  * [#438](https://github.com/toptal/chewy/pull/438): Configurable sidekiq options ([@averell23][])
118
130
 
119
- # Version 0.9.0
131
+ ## 0.9.0
120
132
 
121
- ## Changes
133
+ ### Changes
122
134
 
123
135
  * [#443](https://github.com/toptal/chewy/pull/443): Add `preference` param to Query ([@menglewis][])
124
136
  * [#417](https://github.com/toptal/chewy/pull/417): Add the `track_scores` option to the query; `_score` to be computed and tracked even when there are no `_score` in sort. ([@dmitry][])
@@ -134,16 +146,16 @@
134
146
  * Witchcraft™ supports dynamically generated procs with variables from closure.
135
147
  * Added `Query#preference` for specifying shard replicas to query against. ([@menglewis][])
136
148
 
137
- ## Bugfixes
149
+ ### Bugs Fixed
138
150
 
139
151
  * [#415](https://github.com/toptal/chewy/pull/415): `.script_fields` method in the Index class ([@dmitry][])
140
152
  * [#398](https://github.com/toptal/chewy/pull/398): Fix routing_missing_exception on delete with parent missing ([@guigs][])
141
153
  * [#385](https://github.com/toptal/chewy/pull/385): Sequel custom primary keys handling fix ([@okliv][])
142
154
  * [#374](https://github.com/toptal/chewy/pull/374): Bulk import fixes ([@0x0badc0de][])
143
155
 
144
- # Version 0.8.4
156
+ ## 0.8.4
145
157
 
146
- ## Changes
158
+ ### Changes
147
159
 
148
160
  * Brand new import `:bulk_size` option, set desired ElasticSearch bulk size in bytes
149
161
  * Witchcraft™ technology
@@ -159,7 +171,7 @@
159
171
  * Accessing types with methods is deprecated. Use `MyIndex::MyType` constant reference instead of `MyIndex.my_type` method.
160
172
  * [#294](https://github.com/toptal/chewy/pull/294): Sequel adapter improvements ([@mrbrdo][])
161
173
 
162
- ## Bugfixes
174
+ ### Bugs Fixed
163
175
 
164
176
  * [#325](https://github.com/toptal/chewy/pull/325): Mongoid atomic strategy fix
165
177
  * [#324](https://github.com/toptal/chewy/pull/324): Method missing fix ([@jesjos][])
@@ -167,18 +179,18 @@
167
179
  * [#306](https://github.com/toptal/chewy/pull/306): Better errors handling in strategies ([@barthez][])
168
180
  * [#303](https://github.com/toptal/chewy/pull/303): Assets strategies silencer fix for Rails 5 API mode ([@clupprich][])
169
181
 
170
- # Version 0.8.3
182
+ ## 0.8.3
171
183
 
172
- ## Breaking changes:
184
+ ### Breaking changes:
173
185
 
174
186
  * `Chewy.atomic` and `Chewy.urgent_update=` methods was removed from the codebase, use `Chewy.strategy` block instead.
175
187
  * `delete_from_index?` hook is removed from the codebase.
176
188
 
177
- ## Changes
189
+ ### Changes
178
190
 
179
191
  * Sequel support completely reworked to use common ORM implementations + better sequel specs covarage.
180
192
 
181
- ## Bugfixes
193
+ ### Bugs Fixed
182
194
 
183
195
  * Sequel objects transactional destruction fix
184
196
  * Correct Rspec mocking framework checking ([@mainameiz][])
@@ -186,9 +198,9 @@
186
198
  * Safe unsubscribe on import ([@marshall-lee][])
187
199
  * Correct custom assets path silencer ([@davekaro][])
188
200
 
189
- # Version 0.8.2
201
+ ## 0.8.2
190
202
 
191
- ## Changes
203
+ ### Changes
192
204
 
193
205
  * ActiveJob strategy by [@mkcode][]
194
206
  * Async strategies tweak ([@AndreySavelyev][])
@@ -200,23 +212,23 @@
200
212
  * Multiple grammar fixes ([@henrebotha][])
201
213
  * Ability to pass a proc to `update_index` to define updating index dynamically ([@SeTeM][])
202
214
 
203
- ## Bugfixes
215
+ ### Bugs Fixed
204
216
 
205
217
  * Fixed transport logger and tracer configuration
206
218
 
207
- # Version 0.8.1
219
+ ## 0.8.1
208
220
 
209
- ## Bugfixes
221
+ ### Bugs Fixed
210
222
 
211
223
  * Added support of elasticsearch-ruby 1.0.10
212
224
 
213
- # Version 0.8.0
225
+ ## 0.8.0
214
226
 
215
- ## Breaking changes:
227
+ ### Breaking changes:
216
228
 
217
229
  * `:atomic` and `:urgent` strategies are using `import!` method raising exceptions
218
230
 
219
- ## Changes
231
+ ### Changes
220
232
 
221
233
  * Crutches™ technology
222
234
  * Added `.script_fields` chainable method to query ([@ka8725][])
@@ -225,14 +237,14 @@
225
237
  * `:sidekiq` async strategy (inspired by [@sharkzp][])
226
238
  * Added `Query#search_type` for `search_type` request option setup ([@marshall-lee][])
227
239
 
228
- ## Bugfixes
240
+ ### Bugs Fixed
229
241
 
230
242
  * Rails 4.2 migrations are not raising UndefinedUpdateStrategy anymore on data updates
231
243
  * Mongoid random failing specs fixes ([@marshall-lee][])
232
244
 
233
- # Version 0.7.0
245
+ ## 0.7.0
234
246
 
235
- ## Breaking changes:
247
+ ### Breaking changes:
236
248
 
237
249
  * `Chewy.use_after_commit_callbacks = false` returns previous RDBMS behavior in tests
238
250
  * ActiveRecord import is now called after_commit instead of after_save and after_destroy
@@ -265,7 +277,7 @@
265
277
  end
266
278
  ```
267
279
 
268
- ## Changes
280
+ ### Changes
269
281
 
270
282
  * Multiple enhancements by [@DNNX][]
271
283
  * Added `script_fields` to search criteria ([@ka8725][])
@@ -306,61 +318,61 @@
306
318
  ```
307
319
  * Implemented basic named scopes
308
320
 
309
- ## Bugfixes
321
+ ### Bugs Fixed
310
322
 
311
323
  * `script_score` allow options ([@joeljunstrom][])
312
324
  * Chewy indexes eaged loading fixes ([@leemhenson][])
313
325
  * `Chewy::Index.import nil` imports nothing instead of initial data
314
326
 
315
- # Version 0.6.2
327
+ ## 0.6.2
316
328
 
317
- ## Changes
329
+ ### Changes
318
330
 
319
331
  * document root id custom value option ([@baronworks][])
320
332
 
321
- ## Bugfixes
333
+ ### Bugs Fixed
322
334
 
323
335
  * Removed decay function defaults ([@Linuus][])
324
336
  * Correct config file handling in case of empty file
325
337
 
326
- # Version 0.6.1
338
+ ## 0.6.1
327
339
 
328
- ## Changes
340
+ ### Changes
329
341
 
330
342
  * `min_score` query option support ([@jshirley][])
331
343
  * `Chewy::Query#find` method for finding documents by id
332
344
 
333
- # Version 0.6.0
345
+ ## 0.6.0
334
346
 
335
- ## Changes
347
+ ### Changes
336
348
 
337
349
  * Mongoid support YaY! ([@fabiotomio][], [@leemhenson][])
338
350
  * `urgent: true` option for `update_index` is deprecated and will be removed soon, use `Chewy.atomic` instead
339
351
  * `timeout` and `timed_out` support ([@MarkMurphy][])
340
352
  * will_paginate support ([@josecoelho][])
341
353
 
342
- ## Bugfixes
354
+ ### Bugs Fixed
343
355
 
344
356
  * All the query chainable methods delegated to indexes and types (partially [@Linuus][])
345
357
 
346
- # Version 0.5.2
358
+ ## 0.5.2
347
359
 
348
- ## Breaking changes:
360
+ ### Breaking changes:
349
361
 
350
362
  * `Chewy::Type::Base` removed in favour of using `Chewy::Type` as a base class for all types
351
363
 
352
- ## Changes
364
+ ### Changes
353
365
 
354
366
  * `Chewy.massacre` aliased to `Chewy.delete_all` method deletes all the indexes with current prefix
355
367
 
356
- ## Bugfixes:
368
+ ### Bugs Fixed:
357
369
 
358
370
  * Advanced type classes resolving ([@inbeom][])
359
371
  * `import` ignores nil
360
372
 
361
- # Version 0.5.1
373
+ ## 0.5.1
362
374
 
363
- ## Changes:
375
+ ### Changes:
364
376
 
365
377
  * `chewy.yml` Rails generator ([@jirikolarik][])
366
378
  * Parent-child mappings feature support ([@inbeom][])
@@ -370,20 +382,20 @@
370
382
  * Rspec 3 `update_index` matcher support ([@jimmybaker][])
371
383
  * Implemented function scoring ([@averell23][])
372
384
 
373
- ## Bugfixes:
385
+ ### Bugs Fixed:
374
386
 
375
387
  * Indexed eager-loading fix ([@leemhenson][])
376
388
  * Field type deriving nested type support fix ([@rschellhorn][])
377
389
 
378
- # Version 0.5.0
390
+ ## 0.5.0
379
391
 
380
- ## Breaking changes:
392
+ ### Breaking changes:
381
393
 
382
394
  * 404 exception (IndexMissingException) while query is swallowed and treated like an empty result set.
383
395
  * `load` and `preload` for queries became lazy. Might be partially incompatible.
384
396
  * Changed mapping behavior: multi-fields are defined in conformity with ElasticSearch documentation (http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_multi_fields.html#_multi_fields)
385
397
 
386
- ## Changes:
398
+ ### Changes:
387
399
 
388
400
  * `suggest` query options support ([@rschellhorn][]).
389
401
  * Added hash data support. How it is possible to pass hashes to import.
@@ -397,7 +409,7 @@
397
409
  * `highlight` and `rescore` query options support.
398
410
  * config/chewy.yml ERB support.
399
411
 
400
- ## Bugfixes:
412
+ ### Bugs Fixed:
401
413
 
402
414
  * Fixed `missing` and `exists` filters DSL constructors.
403
415
  * Reworked index data composing.
@@ -405,7 +417,7 @@
405
417
  * Correct waiting for status. After index creation, bulk import, and deletion.
406
418
  * [#23](https://github.com/toptal/chewy/pull/23): Fix "wrong constant name" with namespace models
407
419
 
408
- # Version 0.4.0
420
+ ## 0.4.0
409
421
 
410
422
  * Changed `update_index` matcher behavior. Now it compare array attributes position-independently.
411
423
  * Search aggregations API support ([@arion][]).
@@ -416,18 +428,18 @@
416
428
  * `import` now creates index before performing.
417
429
  * `Chewy.configuration[:wait_for_status]` option. Can be set to `red`, `yellow` or `green`. If set - chewy will wait for cluster status before creating, deleting index and import. Useful for specs.
418
430
 
419
- # Version 0.3.0
431
+ ## 0.3.0
420
432
 
421
433
  * Added `Chewy.configuration[:index]` config to setup common indexes options.
422
434
  * `Chewy.client_options` replaced with `Chewy.configuration`
423
435
  * Using source filtering instead of fields filter (http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-source-filtering.html).
424
436
 
425
- # Version 0.2.3
437
+ ## 0.2.3
426
438
 
427
439
  * `.import!` indexes method, raises import errors.
428
440
  * `.import!` types method, raises import errors. Useful for specs.
429
441
 
430
- # Version 0.2.2
442
+ ## 0.2.2
431
443
 
432
444
  * Support for `none` scope ([@undr][]).
433
445
  * Auto-resolved analyzers and analyzers repository ([@webgago][]):
@@ -443,7 +455,7 @@
443
455
  ```
444
456
  `title_analyzer` here will be automatically resolved and passed to index mapping
445
457
 
446
- # Version 0.2.0
458
+ ## 0.2.0
447
459
 
448
460
  * Reworked import error handling. Now all the import errors from ElasticSearch are handled properly, also import method returns true of false depending on the import process success.
449
461
  * `Chewy::Index.import` now takes types hash as argument within options hash:
@@ -461,7 +473,7 @@
461
473
  `CitiesIndex.all.load(scope: {city: -> { include(:country) }})`
462
474
  `CitiesIndex.all.load(scope: ->{ include(:country) })`
463
475
 
464
- # Version 0.1.0
476
+ ## 0.1.0
465
477
 
466
478
  * Added filters simplified DSL. See [filters.rb](lib/chewy/query/filters.rb) for more details.
467
479
  * Queries and filters join system reworked. See [query.rb](lib/chewy/query.rb) for more details.
@@ -498,7 +510,7 @@
498
510
  * Implemented isolated adapters to simplify adding new ORMs
499
511
  * Query DLS chainable methods delegated to index class (no longer need to call MyIndex.search.query, just MyIndex.query)
500
512
 
501
- # Version 0.0.1
513
+ ## 0.0.1
502
514
 
503
515
  * Query DSL
504
516
  * Basic index handling