Releases: algolia/algoliasearch-rails
1.23.0
Added
-
Introduce
rake algoliasearch:set_all_settings
command - PR #315This command will push settings for all models to all indices: primary index,
replicas and additional indices. It follows theinherit: true
option.
It should typically be added to your deployment script -
Add option to disable automatic settings - PR #315
By default, this gem check your settings to see when to push them. Depending on
your implementation, it might create a lot of API calls. If you wish to disable
the automatic change detection for settings, use thecheck_settings
option:class Musician < ActiveRecord::Base include AlgoliaSearch algoliasearch check_settings: false do # Settings... end end
Fixed
- Handle attribute_changed? in transactions - PR #354
1.22.0
🚨 The documentation for our Rails integration was refreshed 🎉
It will be published very soon here: https://www.algolia.com/doc/framework-integration/rails/getting-started/setup/
Preview is available here: https://deploy-preview-2711--algolia-doc.netlify.com/doc/framework-integration/rails/getting-started/setup/
Added
-
Introduce
algolia_dirty?
on models to decide if a model should be reindex.This feature already exists via _changed? methods but might requires to implements many
methods if you have multiple dynamic attributes. Dynamic attributes are attributes not mapping
to a DB column. This feature allows you to group avoid all the _changed? method calls and
group all the logic inside one unique method.
Fixed
-
Fix _changed? method call for Rails 5.2+ with dynamic attribute - PR #338
Related issue: #140
Documentation: https://www.algolia.com/doc/framework-integration/rails/indexing/indexing/#automatic-updates
1.21.0
Added
-
Add
AlgoliaSearch::IndexSettings::DEFAULT_BATCH_SIZE
constant - PR #319 -
Support ActiveModel Serializer 🎉 - PR #266
class SerializedObject < ActiveRecord::Base include AlgoliaSearch algoliasearch do use_serializer SerializedObjectSerializer tags do ['tag1', 'tag2'] end end end
Fixed
-
Add support for all new recent engine settings - PR #327
Algolia regularly introduce new settings, all of them are supported by this gem.
1.20.6
- Better support for Rails 5.1 and deprecated
attribute_changed?
- Better support for
after_commit
for Sequel 5.0
1.20.2: Upgrade algoliasearch gem to 1.17.0 (#271)
* Upgrade algoliasearch gem to 1.17.0 * Update gem version