Searchkick v5.0.0 Release Notes
Release Date: 2022-02-21 // about 2 years ago-
- Searches now use lazy loading (similar to Active Record)
- ➕ Added
unscope
option to better support working with default scopes - ➕ Added support for
:async
and:queue
modes forreindex
on relation - ➕ Added basic protection from unfiltered parameters to
where
option - ➕ Added
models
option tosimilar
method - 🔄 Changed async full reindex to fetch ids instead of using ranges for numeric primary keys with Active Record
- Changed
searchkick_index_options
to return symbol keys (instead of mix of strings and symbols) - 🔄 Changed non-anchored regular expressions to match expected results (previously warned)
- 🔄 Changed record reindex to return
true
to match model and relation reindex - ⚡️ Updated async reindex job to call
search_import
for nested associations - 🛠 Fixed removing records when
should_index?
isfalse
whenreindex
called on relation - 🛠 Fixed issue with
merge_mappings
for fields that usesearchkick
options - 🚩 Raise error when
search
called on relations - ⚠ Raise
ArgumentError
(instead of warning) for invalid regular expression modifiers - Raise
ArgumentError
instead ofRuntimeError
for unknown operators - ✂ Removed mapping of
id
to_id
withorder
option (not supported in Elasticsearch 8) - ✂ Removed
wordnet
option (no longer worked) - ✂ Removed dependency on
elasticsearch
gem (can useelasticsearch
oropensearch-ruby
) - ⬇️ Dropped support for Elasticsearch 6
- ⬇️ Dropped support for Ruby < 2.6 and Active Record < 5.2
- ⬇️ Dropped support for NoBrainer and Cequel
- Dropped support for
faraday_middleware-aws-signers-v4
(usefaraday_middleware-aws-sigv4
instead)