All Versions
37
Latest Version
Avg Release Cycle
126 days
Latest Release
621 days ago

Changelog History
Page 3

  • v0.8.2 Changes

    October 24, 2015

    πŸ”„ Changes

    • ActiveJob strategy by [@mkcode][]
    • Async strategies tweak ([@AndreySavelyev][])
    • GeoPoint readme ([@joonty][])
    • Multiple grammar fixes and code improvements ([@biow0lf][])
    • Named aggregations by [@caldwecr][]
    • Sequel adapter by [@jirutka][]
    • Rake helper methods extracted ([@caldwecr][], [@jirutka][])
    • Multiple grammar fixes ([@henrebotha][])
    • Ability to pass a proc to update_index to define updating index dynamically ([@SeTeM][])

    πŸ› Bugs Fixed

    • Fixed transport logger and tracer configuration
  • v0.8.1 Changes

    May 30, 2015

    πŸ› Bugs Fixed

    • Added support of elasticsearch-ruby 1.0.10
  • v0.8.0 Changes

    May 30, 2015

    πŸ’₯ Breaking changes:

    • :atomic and :urgent strategies are using import! method raising exceptions

    πŸ”„ Changes

    • Crutchesβ„’ technology
    • Added .script_fields chainable method to query ([@ka8725][])
    • update_index matcher mocha support ([@lardawge][])
    • :resque async strategy
    • :sidekiq async strategy (inspired by [@sharkzp][])
    • Added Query#search_type for search_type request option setup ([@marshall-lee][])

    πŸ› Bugs Fixed

    • Rails 4.2 migrations are not raising UndefinedUpdateStrategy anymore on data updates
    • Mongoid random failing specs fixes ([@marshall-lee][])
  • v0.7.0 Changes

    March 25, 2015

    πŸ’₯ Breaking changes:

    • Chewy.use_after_commit_callbacks = false returns previous RDBMS behavior in tests

    • ActiveRecord import is now called after_commit instead of after_save and after_destroy

    • Import now respects default scope and removes unmatched documents

    • delete_from_index? method is deprecated, use

        define_type User, delete_if: ->{ removed? } do
          ...
        end
      
    • Chewy.request_strategy to configure action controller's request wrapping strategy

    • Chewy.root_strategy to configure the first strategy in stack

    • Default strategy for controller actions is :atomic

    • Default strategy for activerecord migrations is :bypass

    • Default strategy for sandbox console is :bypass

    • Default strategy for rails console is :urgent

    • Chewy.configuration was renamed to Chewy.settings

    • Reworked index update strategies implementation. Chewy.atomic and Chewy.urgent_update are now deprecated in favour of the new Chewy.strategy API.

    • Loading objects for object-sourced types using wrap method is deprecated, load_one method should be used instead. Or method name might be passed to define_type:

        class GeoData
          def self.get_data(elasticsearch_document)
            REDIS.get("geo_data_#{elasticsearch_document.id}")
          end
        end
      
        ...
          define_type GeoData, load_one_method: :get_data do
            ...
          end
      

    πŸ”„ Changes

    • Multiple enhancements by @DNNX

    • Added script_fields to search criteria (@ka8725)

    • ORM adapters now completely relies on the default scope. This means every scope or objects passed to import are merged with default scope so basically there is no need to define delete_if block. Default scope strongly restricts objects which may land in the current index.

        define_type Country.where("rating > 30") do
      
        end
      
        # this code would import only countries with rating between 30 and 50
        CountriesIndex::Country.import(Country.where("rating < 50"))
      
        # the same is true for arrays of objects or ids
        CountriesIndex::Country.import(Country.where("rating < 50").to_a)
        CountriesIndex::Country.import(Country.where("rating < 50").pluck(:id))
      
    • Object adapter supports custom initial import and load methods, so it could be configured to be used with procs or any class responding to call method.

        class GeoData
          def self.call
            REDIS.get_all
          end
        end
      
        ...
          define_type GeoData do
            ...
          end
      
    • Nested fields value procs additional arguments: parent objects.

        define_type Country do
          field :name
          field :cities do
            field :district, value: ->(city, country) { city.districts if country.main? }
          end
        end
      
    • Implemented basic named scopes

    πŸ›  Bugfixes

    • script_score allow options (@joeljunstrom)

    • Chewy indexes eaged loading fixes (@leemhenson)

    • Chewy::Index.import nil imports nothing instead of initial data

  • v0.6.2 Changes

    πŸ”„ Changes

    • document root id custom value option ([@baronworks][])

    πŸ› Bugs Fixed

    • Removed decay function defaults ([@Linuus][])
    • Correct config file handling in case of empty file
  • v0.6.1 Changes

    πŸ”„ Changes

    • min_score query option support ([@jshirley][])
    • Chewy::Query#find method for finding documents by id
  • v0.6.0 Changes

    πŸ”„ Changes

    • Mongoid support YaY! ([@fabiotomio][], [@leemhenson][])
    • urgent: true option for update_index is deprecated and will be removed soon, use Chewy.atomic instead
    • timeout and timed_out support ([@MarkMurphy][])
    • will_paginate support ([@josecoelho][])

    πŸ› Bugs Fixed

    • All the query chainable methods delegated to indexes and types (partially [@Linuus][])
  • v0.5.2 Changes

    πŸ’₯ Breaking changes:

    • Chewy::Type::Base removed in favour of using Chewy::Type as a base class for all types

    πŸ”„ Changes

    • Chewy.massacre aliased to Chewy.delete_all method deletes all the indexes with current prefix

    πŸ› Bugs Fixed:

    • Advanced type classes resolving ([@inbeom][])
    • import ignores nil
  • v0.5.1 Changes

    πŸ”„ Changes:

    • chewy.yml Rails generator ([@jirikolarik][])
    • Parent-child mappings feature support ([@inbeom][])
    • Chewy::Index.total_count and Chewy::Type::Base.total_count
    • Chewy::Type::Base.reset method. Deletes all the type documents and performs import ([@jondavidford][])
    • Added Chewy::Query#delete_all scope method using delete by query ES feature ([@jondavidford][])
    • Rspec 3 update_index matcher support ([@jimmybaker][])
    • Implemented function scoring ([@averell23][])

    πŸ› Bugs Fixed:

    • Indexed eager-loading fix ([@leemhenson][])
    • Field type deriving nested type support fix ([@rschellhorn][])
  • v0.5.0 Changes

    πŸ’₯ Breaking changes:

    πŸ”„ Changes:

    • suggest query options support ([@rschellhorn][]).
    • Added hash data support. How it is possible to pass hashes to import.
    • rake chewy:reset and rake chewy:update paramless acts as rake chewy:reset:all and rake chewy:update:all respectively
    • Added delete_from_index? API method for custom deleted objects marking.
    • Added post_filter API, working the same way as filters.
    • Added chainable strategy query method.
    • Aliasing is performed in index create request for ElasticSearch >= 1.1.
    • preload scope method loads ORM/ODM objects in background.
    • load method :only and :except options to specify load types.
    • highlight and rescore query options support.
    • config/chewy.yml ERB support.

    πŸ› Bugs Fixed:

    • Fixed missing and exists filters DSL constructors.
    • Reworked index data composing.
    • Support for Kaminari new PaginatableArray behavior ([@leemhenson][])
    • Correct waiting for status. After index creation, bulk import, and deletion.
    • #23: Fix "wrong constant name" with namespace models