arelastic 0.4.3 → 0.4.4

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
  SHA1:
3
- metadata.gz: e0362351a0ed0762cf896785ce5e0c11fca53bf7
4
- data.tar.gz: 817bc4f513dd50cdecb79807b53ab7db4ac5e37d
3
+ metadata.gz: 86e61299c1a151518149a1394644685e6f9ce879
4
+ data.tar.gz: e288608cd5e98ca466f12ea6b7ebf29cd4bbebc8
5
5
  SHA512:
6
- metadata.gz: e64f0032b75fb6da266edad7e78325c162205378223a3006dced8ab9986713aebf20b16ed04a81db121712a44337cdabbdfdfedcd71af64e1792acd60d04676c
7
- data.tar.gz: 8cfc0943eb1787acffc04d8b08dcafb8547ae1900908741126d7dde1d57d0c4847236da3b2068658d8062965608b6f5af408f51d3561b441e15166a0820546f0
6
+ metadata.gz: 94f6f848709e97ecd2d127920b15f1784e36bf2405d0f1c050499babc177cc86b79df22c4d19d190ce58487637de667d7fa9ebfdef3f8480ab23d844a4460c31
7
+ data.tar.gz: 594c93e4d097b2d6fdb47077f9f719a638b65f7b472f4b06ce24dacb52fb2e95ae2630d0976bb7e190605cda40104a8476ac7dfd0795ae1b6efea3e76c4a86c4
@@ -8,12 +8,9 @@ module Arelastic
8
8
  end
9
9
 
10
10
  def as_elastic
11
- {
12
- 'nested' => {
13
- 'path' => path,
14
- 'query' => convert_to_elastic(expr)
15
- }
16
- }
11
+ params = {'path' => path}.update(convert_to_elastic(expr))
12
+
13
+ { 'nested' => params }
17
14
  end
18
15
  end
19
16
  end
@@ -13,7 +13,7 @@ class Arelastic::Filters::NestedTest < MiniTest::Unit::TestCase
13
13
  }
14
14
  }
15
15
 
16
- assert_equal expected, Arelastic::Filters::Nested.new('bunnies', Arelastic::Queries::Match.new('name', 'Harry')).as_elastic
16
+ assert_equal expected, Arelastic::Filters::Nested.new('bunnies', Arelastic::Searches::Query(Arelastic::Queries::Match.new('name', 'Harry'))).as_elastic
17
17
  end
18
18
 
19
19
  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: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Higgins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-19 00:00:00.000000000 Z
11
+ date: 2013-09-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Build Elastic Search queries with objects
14
14
  email: developer@matthewhiggins.com