Releases: algolia/algoliasearch-rails
v2.3.2
What's Changed
- Add support for Pagy as pagination backend by @tpaulshippy in #443
New Contributors
- @tpaulshippy made their first contribution in #443
Full Changelog: 2.3.1...2.3.2
v2.3.1
What's Changed
- Allow configuring user agent / other default options by @bagedevimo in #438
- Allow configuration ActiveJob queue for auto_index by @bagedevimo in #439
New Contributors
- @bagedevimo made their first contribution in #438
Full Changelog: 2.3.0...2.3.1
v2.3.0
What's Changed
- fix: don't consider objectID changed if using custom attribute by @DevinCodes in #436
Full Changelog: 2.2.2...2.3.0
v2.2.2
What's Changed
- Fix wrong method name by @Samuelfaure in #429
- Check both Sequel and Sequel::Model are defined. by @mikeastock in #433
New Contributors
- @Samuelfaure made their first contribution in #429
Full Changelog: 2.2.1...2.2.2
v2.2.1
What's Changed
- fix:settings changes detection issue with empty array by @kiyohara in #424
- fix: settings changes detection issue for replica indexes with inherit opt by @kiyohara in #426
- fix: make sync opt to be selectable for auto setting update logic by @kiyohara in #425
- Add relevancyStrictness to IndexSettings by @matteodepalo in #427
New Contributors
- @matteodepalo made their first contribution in #427
Full Changelog: 2.2.0...2.2.1
v2.2.0
What's Changed
- feat: allow to set client options by @DevinCodes in #420
- chore: update index initialization docs by @DevinCodes in #419
- fix: only check current settings when indexing enabled by @DevinCodes in #416
- Fix issue with FrozenError around force_encoding by @parterburn in #418
New Contributors
- @parterburn made their first contribution in #418
Full Changelog: 2.1.4...2.2.0
2.0.0
1.25.0
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