elastics-scopes 1.2.1 → 1.3.0

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: 8ba9163779def0d49e83baf5ff99ee4ae99e152f
4
- data.tar.gz: 443e6a1c5f098b468f68131f33478b87a9014112
3
+ metadata.gz: c25be2591c427ccaa59bcda7816b02a0591af708
4
+ data.tar.gz: 46666f24073553e0ec783a947063868b9b9ea165
5
5
  SHA512:
6
- metadata.gz: 6e083490da6792cf29bd3ce55bb7b62a72823f211180f32df69a446ee8782bd5a93e5fe889c9e7e1d4fc17e09d08aaa010c97be27243268788d70f6b8fbc97fd
7
- data.tar.gz: 873d6604e765070ecb19ed273ebdbb3882e08577c5d0216d5cd528656526b725b50ab9d1e3a5de86a69749f91ce07dc93252f54e8e36178f09d412dc693162b1
6
+ metadata.gz: e3ca39da66cf8a6970ea427439804167ffd08cf4c981529eefa480b66d170b78dd096f4abbd4e9c08b4cc4b97b64df73c6e510b1044cbebdc95171187dab4514
7
+ data.tar.gz: 41a63ed906338eab98d7236fce6b678ebea4229259900cba44049615da0fa0d7e2882cad0d77442dc43a7cbaac34596fbe9f2184343950edbcabd8f68d76250c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.3.0
@@ -15,7 +15,6 @@ ANCHORS:
15
15
  script_fields:
16
16
  <<script_fields= ~ >>
17
17
  sort: <<sort= ~ >>
18
- facets: <<facets= ~ >>
19
18
  highlight: <<highlight= ~ >>
20
19
  filter: <<_boolean_wrapper= :_and >>
21
20
 
@@ -77,7 +77,7 @@ module Elastics
77
77
  result = if vars.first.is_a?(Symbol)
78
78
  template = vars.shift
79
79
  # preserves an eventual wrapper by calling the template method
80
- self[:context].send(template, params(:search_type => 'count'), *vars)
80
+ self[:context].send(template, params(:size => 0), *vars)
81
81
  else
82
82
  Query.elastics.count_search(:get, self, *vars)
83
83
  end
@@ -69,10 +69,6 @@ module Elastics
69
69
  deep_merge :script_fields => hash
70
70
  end
71
71
 
72
- def facets(hash)
73
- deep_merge :facets => hash
74
- end
75
-
76
72
  def highlight(hash)
77
73
  deep_merge :highlight => hash
78
74
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastics-scopes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Domizio Demichelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-22 00:00:00.000000000 Z
11
+ date: 2016-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: elastics-client
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.1
19
+ version: 1.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2.1
26
+ version: 1.3.0
27
27
  description: Provides an easy to use ruby API to search elasticsearch with ActiveRecord-like
28
28
  chainable and mergeables scopes.
29
29
  email: dd.nexus@gmail.com