All Versions
33
Latest Version
Avg Release Cycle
133 days
Latest Release
157 days ago

Changelog History
Page 1

  • v7.2.2 Changes

    May 24, 2021

    ๐Ÿ”„ Changes

    • #800: Revert #787 progressbar feature to avoid performance degradation in parallel import ([@rabotyaga][])

    • #795: (Breaking) Change the Chewy::Search::Parameters::Order implementation to use Array ([@jiajiawang][]):

      • To allow multiple sorting options that may have the same key name. For example script based sorting whose key will always be _script.
      • Behaviour change of chained order calls.
        • e.g. .order(_script: {a: 1}).order(_script: {b: 2})
        • Before {:sort=>[{"_script"=>{:b=>2}}]}
        • After {:sort=>[{"_script"=>{:a=>1}},{"_script"=>{:b=>2}}]}
    • #654: Add helpers and matchers for testing ([@Vitalina-Vakulchyk][]):

      • mock_elasticsearch_response helpers both Rspec and Minitest - to mock elasticsearch response
      • mock_elasticsearch_response_sources helpers both Rspec and Minitest - to mock elasticsearch response sources
      • assert_elasticsearch_query helper for Minitest - to compare request and expected query (returns true/false)
      • build_query matcher for Rspec - to compare request and expected query (returns true/false)
  • v7.2.1 Changes

    May 11, 2021

    ๐Ÿ†• New Features

    • #469: Add ability to output the progressbar with ENV['PROGRESS'] during reset rake tasks ([@Vitalina-Vakulchyk][]):
      • for rake chewy:reset and rake chewy:parallel:reset
      • progressbar is hidden by default, set ENV['PROGRESS'] to true to display it

    ๐Ÿ› Bugs Fixed

    • #796: Fix clear scroll: pass scroll_id in body, as passing in path parameters is deprecated and can overflow http.max_initial_line_length ([@rabotyaga][])
  • v7.2.0 Changes

    April 19, 2021

    ๐Ÿ†• New Features

    • #778: Add ignore_blank option to field method ([@Vitalina-Vakulchyk][]):
      • true by default for the geo_point type
      • false by default for other types

    ๐Ÿ”„ Changes

    • #783: (Breaking) Remove Chewy::Type, simplify DSL ([@rabotyaga][])
      • Remove the Chewy::Type class
        • e.g. remove CitiesIndex::City / CitiesIndex.city
          • CitiesIndex::City.import! ... becomes CitiesIndex.import! ...
      • Simplify index DSL:
        • define_type block -> index_scope clause
          • it can be omitted completely, if you don't need to specify the scope or options, e.g. name
      • Remove type names from string representations:
        • in update_index ActiveRecord helper and RSpec matcher, e.g.
          • update_index('cities#city') -> update_index('cities')
          • update_index(UsersIndex::User) -> update_index(UsersIndex)
        • in rake tasks (e.g. rake chewy:update[cities#city] -> rake chewy:update[cities])
        • in rake tasks output (e.g. Imported CitiesIndex::City in 1s, stats: index 3 -> Imported CitiesIndex in 1s, stats: index 3)
      • Use index name instead of type name in loader additional scope
        • e.g. CitiesIndex.filter(...).load(city: {scope: City.where(...)}) -> CitiesIndex.filter(...).load(cities: {scope: City.where(...)})
    • #692: Add .update_mapping to Index class ([@Vitalina-Vakulchyk][]):
      • Wrapped Elasticsearch gem .put_mapping with .update_mapping in Index class
      • Add rake chewy:update_mapping task
    • #594: Add .reindex to Index class ([@Vitalina-Vakulchyk][]):
      • Wrapped Elasticsearch gem .reindex with .reindex in Index class
      • Add rake chewy:reindex task
    • #679: Wrapped Elasticsearch::API::Indices::Actions#clear_cache with .clear_cache in Index class ([@Vitalina-Vakulchyk][])
    • #495: Ability to change Rails console strategy with Chewy.console_strategy ([@Vitalina-Vakulchyk][])
    • #778: (Breaking) Drop support for Ruby 2.5 ([@Vitalina-Vakulchyk][])
    • #776: (Breaking) Removal of unnecessary features and integrations ([@Vitalina-Vakulchyk][]):
      • aws-sdk-sqs / shoryuken
      • mongoid
      • sequel
      • will_paginate
      • resque
    • #769: (Breaking) Removal of deprecated methods and rake tasks ([@Vitalina-Vakulchyk][]):
      • Chewy::Index.index_params is removed, use Chewy::Index.specification_hash instead
      • Chewy::Index.derivable_index_name is removed, use Chewy::Index.derivable_name instead
      • Chewy::Index.default_prefix is removed, use Chewy::Index.prefix instead
      • Chewy::Index.build_index_name is removed, use Chewy::Index.index_name instead
      • Chewy::RakeHelper.reset_index is removed, use Chewy::RakeHelper.reset instead
      • Chewy::RakeHelper.reset_all is removed, use Chewy::RakeHelper.reset instead
      • Chewy::RakeHelper.update_index is removed, use Chewy::RakeHelper.update instead
      • Chewy::RakeHelper.update_all is removed, use Chewy::RakeHelper.update instead
      • rake chewy:apply_changes_from is removed, use rake chewy:journal:apply instead
      • rake chewy:clean_journal is removed, use rake chewy:journal:clean instead
  • v7.1.0 Changes

    March 03, 2021

    ๐Ÿ”„ Changes

    • #766: (Breaking) Drop support for Elasticsearch 6.x ([@rabotyaga][])
    • #765: Fix ruby 2.7 warnings in rake tasks ([@aglushkov][])

    ๐Ÿ› Bugs Fixed

    • #722: Remove alias_method_chain, use Module#prepend instead ([@dalthon][])
  • v7.0.1 Changes

    May 03, 2021

    ๐Ÿ”„ Changes

    • #792: Skip ES version memoization for search requests ([@rabotyaga][])
      • See the Migration Guide for details
  • v7.0.0 Changes

    February 22, 2021

    ๐Ÿ†• New Features

    • #763: Added support for Elasticsearch 7 ([@rabotyaga][])

    ๐Ÿ”„ Changes

    • #757: (Breaking) Fix Chewy::Index.index & Chewy::Index.aliases to correctly report indexes and aliases ([@mpeychich][], [@dalthon][])
    • #761: Avoid fetching scope data to check if it is blank ([@dalthon][])
  • v6.0.0 Changes

    February 11, 2021

    ๐Ÿ”„ Changes

    • #743: (Breaking) Elasticsearch 6.x support added. See the [migration guide](migration_guide.md) & ES breaking changes. Removed legacy DSL support. Removed support for ES < 5. ([@mrzasa][], [@konalegi][], [@rabotyaga][])
    • #751: Add Multi Search API support. ([@mpeychich][], [@dalthon][])
    • #755: attribute_highlights returns an array of highlights. ([@musaffa][], [@dalthon][])
    • #753: Add support for direct_import parameter to skip objects reloading. ([@TikiTDO][], [@dalthon][])
    • #739: Remove explicit main branch dependencies on rspec-* gems after rspec-mocks 3.10.2 is released. ([@rabotyaga][])

    ๐Ÿ› Bugs Fixed

    • #695: Clear the scroll by id after completing scroll_batches. ([@socialchorus][])
    • #749: Avoid importing everything when given an empty relation. ([@JF-Lalonde][], [@dalthon][])
    • #736: Fix nil children when using witchcraft. ([@taylor-au][])
  • v5.2.0 Changes

    January 28, 2021

    ๐Ÿ”„ Changes

    • #734: Add support for Ruby 3. ([@lowang][])
    • #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][])
    • #733: Update gemspec dependencies for Rails. Update CI gemfiles and matrix to tests against current LTS Rails versions. ([@bhacaz][])
    • Tweak some wording and formatting; add a note about compatibility; update copyright; remove broken logo; update the CI badge. ([@bbatsov][])
    • #714: Update instructions for AWS ElasticSearch. ([@olancheg][])
    • #728: Fix more ruby 2.7 keyword params deprecation warnings. ([@aglushkov][])
    • #715: Fixed all deprecation warnings in Ruby 2.7. ([@gseddon][])
    • #718: Added Ruby 2.7 to CircleCI config. ([@mrzasa][])
    • #707: Allow configuration of Active Job queue name. ([@mrzasa][])
    • #711: Setup CI on CircleCI. ([@mrzasa][])
    • #710: Fix deprecation warning for constructing new BigDecimal. ([@AlexVPopov][])
  • v5.1.0 Changes

    September 24, 2019

    ๐Ÿ”„ Changes

    • #657: (Breaking) Add support for multiple indices in request. ([@pyromaniac][])
    • #647: (Breaking) Support search_type, request_cache, and allow_partial_search_results as query string parameters. ([@mattzollinhofer][])
    • #606: Speed up imports when bulk_size is specified. ([@yahooguntu][])
    • #682: Insert RequestStrategy middleware before ActionDispatch::ShowExceptions. ([@dck][])
  • v5.0.1 Changes

    September 16, 2019

    ๐Ÿ”„ Changes

    • Speed up imports when bulk_size is specified (@yahooguntu, #606)

    • Support search_type, request_cache, and allow_partial_search_results as query string parameters (@mattzollinhofer, #647)

    • Support multiple indices in request (@pyromaniac, #657)

    • Insert RequestStrategy middleware before ActionDispatch::ShowExceptions (@dck, #682)