AlgoliaSearch integration to your favorite ORM
Full Changelog: https://github.com/algolia/algoliasearch-rails/compare/2.3.1...2.3.2
Full Changelog: https://github.com/algolia/algoliasearch-rails/compare/2.3.0...2.3.1
Full Changelog: https://github.com/algolia/algoliasearch-rails/compare/2.2.2...2.3.0
Full Changelog: https://github.com/algolia/algoliasearch-rails/compare/2.2.1...2.2.2
Full Changelog: https://github.com/algolia/algoliasearch-rails/compare/2.2.0...2.2.1
Full Changelog: https://github.com/algolia/algoliasearch-rails/compare/2.1.4...2.2.0
Added
Introduce rake algoliasearch:set_all_settings
command - PR #315
This command will push settings for all models to all indices: primary index,
replicas and additional indices. It follows the inherit: 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 the check_settings
option:
class Musician < ActiveRecord::Base
include AlgoliaSearch
algoliasearch check_settings: false do
# Settings...
end
end
Fixed
🚨 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: https://github.com/algolia/algoliasearch-rails/issues/140 Documentation: https://www.algolia.com/doc/framework-integration/rails/indexing/indexing/#automatic-updates