es-elasticity 0.6.3 → 0.6.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: db223045f4a1f6c4550940c3a6a8ab31313e2641
4
- data.tar.gz: 05c9d8c099afe031a5c603c0cd4ab54e1b8d6fb7
3
+ metadata.gz: d8f22efbfa1c08ea072b29ab855c27ac110d1704
4
+ data.tar.gz: 934d6ec4117475deb51496588301e1f1f8fce84d
5
5
  SHA512:
6
- metadata.gz: 7722a0f30843c9236e8ed33eabd4ebeafe1bcd5ec04e4bfcfc74ff6c9cf6a1133b39ff5b45e603e8e6475e0b31fee082591d231ffff9e1b7aa2ee18bbe22306e
7
- data.tar.gz: 05a92b3f0a31bcb87b758bd57c1cdaba037b57d36a0e97502db6b9072cb1c0712abde819d5d0fbac9a778b10eb2dbd2bc653e844d06fed37d8d4d390fcb78302
6
+ metadata.gz: 6f8d4cc458979c125047deae5c8cc1638f6891d13eeb1b5cd3eb0b2ee634e7dab8ce32dd567080fd093901345a76659f0499ae75d12e715d75325206195fee32
7
+ data.tar.gz: 96ea9b7cea8666887f8d7f453d5b0f10b1cae8d225a7a3da24f72e9782f33a483bc07ab8e8ee7c0b9b5335c447d258c1c9502ad6e267b2c579668992fc2a3b30
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ v0.6.4
2
+ - update suggestions to pull from the proper key
3
+ v0.6.3
4
+ - add next_page and previous_page to be compatible with will_paginate
5
+ interface
1
6
  v0.6.2
2
7
  - update multi search `[]` method to raise an exception with key name to
3
8
  make it easier to debug failed queries within a multi search hash.
@@ -104,7 +104,7 @@ module Elasticity
104
104
  end
105
105
 
106
106
  def suggestions
107
- response["hits"]["suggest"] ||= {}
107
+ response["suggest"] ||= {}
108
108
  end
109
109
 
110
110
  def count(args = {})
@@ -228,7 +228,7 @@ module Elasticity
228
228
  end
229
229
 
230
230
  def metadata
231
- @metadata ||= { total: response["hits"]["total"], suggestions: response["hits"]["suggest"] || {} }
231
+ @metadata ||= { total: response["hits"]["total"], suggestions: response["suggest"] || {} }
232
232
  end
233
233
 
234
234
  def total
@@ -1,3 +1,3 @@
1
1
  module Elasticity
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: es-elasticity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Kochenburger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-05 00:00:00.000000000 Z
11
+ date: 2016-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  version: '0'
231
231
  requirements: []
232
232
  rubyforge_project:
233
- rubygems_version: 2.4.5.1
233
+ rubygems_version: 2.4.5
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: ActiveModel-based library for working with Elasticsearch
@@ -243,4 +243,3 @@ test_files:
243
243
  - spec/units/multi_search_spec.rb
244
244
  - spec/units/search_spec.rb
245
245
  - spec/units/strategies/single_index_spec.rb
246
- has_rdoc: