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 for reindex on relation
    • ➕ Added basic protection from unfiltered parameters to where option
    • ➕ Added models option to similar 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? is false when reindex called on relation
    • 🛠 Fixed issue with merge_mappings for fields that use searchkick options
    • 🚩 Raise error when search called on relations
    • ⚠ Raise ArgumentError (instead of warning) for invalid regular expression modifiers
    • Raise ArgumentError instead of RuntimeError for unknown operators
    • ✂ Removed mapping of id to _id with order option (not supported in Elasticsearch 8)
    • ✂ Removed wordnet option (no longer worked)
    • ✂ Removed dependency on elasticsearch gem (can use elasticsearch or opensearch-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 (use faraday_middleware-aws-sigv4 instead)