Commit d9790adda00d96b793d1170350bf534b2143b25a
1 parent
0dffd602
Exists in
master
and in
19 other branches
Disable _all field by default in ES 5 [skip ci]
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
CHANGELOG.md
... | ... | @@ -5,6 +5,7 @@ |
5 | 5 | - Removed `reindex_async` method. `reindex` now defaults to mode specified by model. Use `reindex(mode: :async)` to force async reindex. |
6 | 6 | - Types are no longer supported. To upgrade models that use inheritance, upgrade your gem to `2.5.0`. Added `inheritance: true` to your `searchkick` method, and do a full reindex before upgrading. |
7 | 7 | - Bumped default `limit` to 10,000 |
8 | +- The `_all` field is disabled by default in Elasticsearch 5. Use `searchkick _all: true` if you need it. | |
8 | 9 | |
9 | 10 | ## 2.5.1 [unreleased] |
10 | 11 | ... | ... |
lib/searchkick/index_options.rb
... | ... | @@ -16,7 +16,7 @@ module Searchkick |
16 | 16 | default_analyzer = :searchkick_index |
17 | 17 | keyword_mapping = {type: "keyword"} |
18 | 18 | |
19 | - all = options.key?(:_all) ? options[:_all] : below60 | |
19 | + all = options.key?(:_all) ? options[:_all] : false | |
20 | 20 | index_true_value = true |
21 | 21 | index_false_value = false |
22 | 22 | ... | ... |