Skip to content

Releases: algolia/algoliasearch-rails

1.23.0

25 Jun 23:21
Compare
Choose a tag to compare

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

  • Handle attribute_changed? in transactions - PR #354

1.22.0

21 Mar 09:02
Compare
Choose a tag to compare

🚨 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

1.21.0

13 Feb 08:02
Compare
Choose a tag to compare

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

20 Dec 15:24
Compare
Choose a tag to compare
  • 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)

02 Nov 15:10
6e52c56
Compare
Choose a tag to compare
* Upgrade algoliasearch gem to 1.17.0

* Update gem version