chewy v7.2.0 Release Notes
Release Date: 2021-04-19 // almost 3 years ago-
๐ New Features
- #778: Add
ignore_blank
option tofield
method ([@Vitalina-Vakulchyk][]):true
by default for thegeo_point
typefalse
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! ...
becomesCitiesIndex.import! ...
- e.g. remove
- 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
- it can be omitted completely, if you don't need to specify the scope or options, e.g.
- 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
)
- in
- 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(...)})
- e.g.
- Remove the
- #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
- Wrapped Elasticsearch gem
- #594: Add
.reindex
to Index class ([@Vitalina-Vakulchyk][]):- Wrapped Elasticsearch gem
.reindex
with.reindex
in Index class - Add
rake chewy:reindex
task
- Wrapped Elasticsearch gem
- #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, useChewy::Index.specification_hash
insteadChewy::Index.derivable_index_name
is removed, useChewy::Index.derivable_name
insteadChewy::Index.default_prefix
is removed, useChewy::Index.prefix
insteadChewy::Index.build_index_name
is removed, useChewy::Index.index_name
insteadChewy::RakeHelper.reset_index
is removed, useChewy::RakeHelper.reset
insteadChewy::RakeHelper.reset_all
is removed, useChewy::RakeHelper.reset
insteadChewy::RakeHelper.update_index
is removed, useChewy::RakeHelper.update
insteadChewy::RakeHelper.update_all
is removed, useChewy::RakeHelper.update
insteadrake chewy:apply_changes_from
is removed, userake chewy:journal:apply
insteadrake chewy:clean_journal
is removed, userake chewy:journal:clean
instead
- #778: Add