es-elasticity 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +2 -0
- data/lib/elasticity/base_document.rb +1 -1
- data/lib/elasticity/index_mapper.rb +1 -0
- data/lib/elasticity/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 50e49ee213d45f6888663d417c8f019ed79d4c9f
|
|
4
|
+
data.tar.gz: 103bb2370e73a3a61e98e92c77491521d95a83f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 766f198bb518a44bd3808ca020bbbff4b98b9449fd0cbf429c41f573fe3f14715c4a31a191c3a4fa5e5ca06f7219c815315c92131e57414681117ac583fd035f
|
|
7
|
+
data.tar.gz: 9641a5fbc45325e1468585b8052e931946cfad57adb2012373ac98a3c1343a79c80ed0aca6939b0d7c5a0a766e578d933b8d10d1fae22004f712b2baac502636
|
data/CHANGELOG
ADDED
|
@@ -122,6 +122,7 @@ module Elasticity
|
|
|
122
122
|
# Creates a instance of a document from a ElasticSearch hit data.
|
|
123
123
|
def map_hit(hit)
|
|
124
124
|
attrs = { _id: hit["_id"] }
|
|
125
|
+
attrs.merge!(_score: hit["_score"])
|
|
125
126
|
attrs.merge!(hit["_source"]) if hit["_source"]
|
|
126
127
|
|
|
127
128
|
if hit["highlight"]
|
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.4.
|
|
4
|
+
version: 0.4.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:
|
|
11
|
+
date: 2016-01-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -176,6 +176,7 @@ files:
|
|
|
176
176
|
- ".rspec"
|
|
177
177
|
- ".simplecov"
|
|
178
178
|
- ".travis.yml"
|
|
179
|
+
- CHANGELOG
|
|
179
180
|
- CONTRIBUTING.md
|
|
180
181
|
- Gemfile
|
|
181
182
|
- LICENSE.txt
|
|
@@ -229,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
229
230
|
version: '0'
|
|
230
231
|
requirements: []
|
|
231
232
|
rubyforge_project:
|
|
232
|
-
rubygems_version: 2.
|
|
233
|
+
rubygems_version: 2.2.2
|
|
233
234
|
signing_key:
|
|
234
235
|
specification_version: 4
|
|
235
236
|
summary: ActiveModel-based library for working with Elasticsearch
|
|
@@ -242,4 +243,3 @@ test_files:
|
|
|
242
243
|
- spec/units/multi_search_spec.rb
|
|
243
244
|
- spec/units/search_spec.rb
|
|
244
245
|
- spec/units/strategies/single_index_spec.rb
|
|
245
|
-
has_rdoc:
|