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 usingimport!
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
forsearch_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 testsActiveRecord 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, usedefine_type User, delete_if: ->{ removed? } do ... end
Chewy.request_strategy
to configure action controller's request wrapping strategyChewy.root_strategy
to configure the first strategy in stackDefault 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 toChewy.settings
Reworked index update strategies implementation.
Chewy.atomic
andChewy.urgent_update
are now deprecated in favour of the newChewy.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 todefine_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 forupdate_index
is deprecated and will be removed soon, useChewy.atomic
insteadtimeout
andtimed_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 usingChewy::Type
as a base class for all types
π Changes
Chewy.massacre
aliased toChewy.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
andChewy::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:
- 404 exception (IndexMissingException) while query is swallowed and treated like an empty result set.
load
andpreload
for queries became lazy. Might be partially incompatible.- Changed mapping behavior: multi-fields are defined in conformity with ElasticSearch documentation (http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_multi_fields.html#_multi_fields)
π Changes:
suggest
query options support ([@rschellhorn][]).- Added hash data support. How it is possible to pass hashes to import.
rake chewy:reset
andrake chewy:update
paramless acts asrake chewy:reset:all
andrake 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
andrescore
query options support.- config/chewy.yml ERB support.
π Bugs Fixed:
- Fixed
missing
andexists
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