arelastic 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 381463ecf4f97102d56a12e6cfba3aaaa5f9610b7f6d8c622793d99a464ec47a
|
4
|
+
data.tar.gz: f679b942408ee54fd00c9d40a2fd85f5995da569b874bd7411b71d9866f7a3b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79b6b446d60712c50da8e668d0280f5c740c8edbac75fbc246ccc54e96bac3c0f034806f58dbe46ddaf61ea412b562b14b9c5f3c88a0456ae574d37dc27689a9
|
7
|
+
data.tar.gz: 7b794ddfd65dbe44b27042eaebb9e240708fc6cc8b003f628ae3353d8bdf2b638b953b69dae652bdf542d3d55da80acb9a4b05d1c393ab429d2978ec637184f3
|
@@ -5,6 +5,7 @@ require 'arelastic/aggregations/date_histogram'
|
|
5
5
|
require 'arelastic/aggregations/filter'
|
6
6
|
require 'arelastic/aggregations/histogram'
|
7
7
|
require 'arelastic/aggregations/min'
|
8
|
+
require 'arelastic/aggregations/missing'
|
8
9
|
require 'arelastic/aggregations/nested'
|
9
10
|
require 'arelastic/aggregations/range'
|
10
11
|
require 'arelastic/aggregations/reverse_nested'
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class Arelastic::Aggregations::MissingTest < Minitest::Test
|
4
|
+
def test_as_elastic
|
5
|
+
aggregation = Arelastic::Aggregations::Missing.new('foo', 'field' => 'price')
|
6
|
+
|
7
|
+
expected = {
|
8
|
+
"foo" => {
|
9
|
+
"missing" => {
|
10
|
+
"field" => "price"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
assert_equal expected, aggregation.as_elastic
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arelastic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Higgins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Build Elastic Search queries with objects
|
14
14
|
email: developer@matthewhiggins.com
|
@@ -26,6 +26,7 @@ files:
|
|
26
26
|
- lib/arelastic/aggregations/filter.rb
|
27
27
|
- lib/arelastic/aggregations/histogram.rb
|
28
28
|
- lib/arelastic/aggregations/min.rb
|
29
|
+
- lib/arelastic/aggregations/missing.rb
|
29
30
|
- lib/arelastic/aggregations/nested.rb
|
30
31
|
- lib/arelastic/aggregations/range.rb
|
31
32
|
- lib/arelastic/aggregations/reverse_nested.rb
|
@@ -100,6 +101,7 @@ files:
|
|
100
101
|
- test/arelastic/aggregations/bucket_test.rb
|
101
102
|
- test/arelastic/aggregations/date_histogram_test.rb
|
102
103
|
- test/arelastic/aggregations/filter_test.rb
|
104
|
+
- test/arelastic/aggregations/missing_test.rb
|
103
105
|
- test/arelastic/aggregations/nested_test.rb
|
104
106
|
- test/arelastic/aggregations/range_test.rb
|
105
107
|
- test/arelastic/aggregations/reverse_nested_test.rb
|