Commit f635b13671b757ce62a7a3ab430adcda49baa622
1 parent
9462cd49
Exists in
master
and in
21 other branches
sum_other_doc_count added in 1.4.0
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
ci/before_install.sh
1 | 1 | #!/usr/bin/env bash |
2 | 2 | |
3 | -wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.2.deb | |
4 | -sudo dpkg -i elasticsearch-1.3.2.deb | |
3 | +wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.7.3.deb | |
4 | +sudo dpkg -i elasticsearch-1.7.3.deb | |
5 | 5 | sudo service elasticsearch restart |
6 | 6 | |
7 | 7 | if [ -n "$NOBRAINER" ]; then | ... | ... |
test/aggs_test.rb
... | ... | @@ -31,7 +31,7 @@ class TestAggs < Minitest::Test |
31 | 31 | agg = Product.search("Product", aggs: {store_id: {limit: 1}}).aggs["store_id"] |
32 | 32 | assert_equal 1, agg["buckets"].size |
33 | 33 | # assert_equal 3, agg["doc_count"] |
34 | - assert_equal 1, agg["sum_other_doc_count"] | |
34 | + assert_equal(1, agg["sum_other_doc_count"]) if Gem::Version.new(Searchkick.server_version) >= Gem::Version.new("1.4.0") | |
35 | 35 | end |
36 | 36 | |
37 | 37 | def test_where_no_smart_aggs | ... | ... |