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 +4 -4
- data/CHANGELOG +5 -0
- data/lib/elasticity/search.rb +2 -2
- data/lib/elasticity/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8f22efbfa1c08ea072b29ab855c27ac110d1704
|
4
|
+
data.tar.gz: 934d6ec4117475deb51496588301e1f1f8fce84d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/lib/elasticity/search.rb
CHANGED
@@ -104,7 +104,7 @@ module Elasticity
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def suggestions
|
107
|
-
response["
|
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["
|
231
|
+
@metadata ||= { total: response["hits"]["total"], suggestions: response["suggest"] || {} }
|
232
232
|
end
|
233
233
|
|
234
234
|
def total
|
data/lib/elasticity/version.rb
CHANGED
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.
|
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-
|
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
|
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:
|