04 May, 2016
3 commits
03 May, 2016
1 commit
12 Mar, 2016
1 commit
-
reindexing models on an ES cluster that is totally new / empty throws…
11 Mar, 2016
1 commit
-
irb(main):001:0> User.reindex NoMethodError: undefined method `keys' for []:Array from /app/vendor/bundle/ruby/2.1.0/gems/searchkick-1.2.1/lib/searchkick/index.rb:151:in `clean_indices' from /app/vendor/bundle/ruby/2.1.0/gems/searchkick-1.2.1/lib/searchkick/index.rb:163:in `reindex_scope' from /app/vendor/bundle/ruby/2.1.0/gems/searchkick-1.2.1/lib/searchkick/model.rb:51:in `searchkick_reindex' from (irb):1 from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.4/lib/rails/commands/console.rb:90:in `start' from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.4/lib/rails/commands/console.rb:9:in `start' from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.4/lib/rails/commands.rb:62:in `<top (required)>' from bin/rails:4:in `require' from bin/rails:4:in `<main>' When I looked into it, client.indices.get_alias returns a hash, not an array, so the NotFound rescue should be returning an empty hash. This change fixes the issue. I did NOT add a unit test because the only way to test this would be to either nuke all indexes from the local ES test cluster, or startup a totally vanilla cluster just for running the test, which is kind of out of the scope of this change.
18 Feb, 2016
3 commits
-
Add Support for min_doc_count Filter in Aggregations Query with Tests
17 Feb, 2016
2 commits
15 Feb, 2016
2 commits
14 Feb, 2016
5 commits
10 Feb, 2016
1 commit
09 Feb, 2016
1 commit
04 Feb, 2016
2 commits
03 Feb, 2016
6 commits
02 Feb, 2016
6 commits
-
…searchkick into aaroncraigongithub-fix/faraday-hash-object
21 Jan, 2016
4 commits
-
Use Module#prepend instead of deprecated alias_method_chain
03 Jan, 2016
1 commit
20 Dec, 2015
1 commit