es-elasticity 0.13.4 → 0.13.5.dblackmon.1

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
  SHA256:
3
- metadata.gz: 8cddf215cbd343a666cede00c6788eb6f6dd27491dee5f54571bf46ca0c05ef5
4
- data.tar.gz: f354ee81b1cf462dc989ecdc7a2d56ebfdd41ca1ef842d4607d01fe201850a3e
3
+ metadata.gz: 48cc2b37783aa81345f07ad46c95ffd902af46c6dd9a6a740fd028b355413632
4
+ data.tar.gz: 0d5f714fb620c4b7b658031fa05540b2e2cf360be662966f2e779532d54fb45d
5
5
  SHA512:
6
- metadata.gz: 14906fd419d5d9f0bd5226aea44fb6a0f6305b719882cf0357d7e075efc42a439f505e318f3858424b4f967e93588a3d9e28b1ea336badade23b4ddb30af9d0d
7
- data.tar.gz: 2f9a5ce3a207948e8dc03f0e47e716e44873341aa32389a016c120f8e6592e3ae20dfc0dc1a59cb6a7155858a30442e6260ef3c389ee8bee2cbb952cd9968015
6
+ metadata.gz: 21704f673d49e830493f6ad8595abfb524718d7904d6e44cc878b2947e83009c58aa3f4bfa4f839bab524eb9fbaac08a7e353b8cacbba9d880c00ac9a86f5cd7
7
+ data.tar.gz: 1116e1b2081b0b65eed1be578c7d9aea6767f7d57da89ef2b8d2564c0298b0938d795607d7a260337cfd15127709c1d0c21bab7bfc9cccbc710921f6bfb1d15d
data/CHANGELOG.md CHANGED
@@ -6,10 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+
10
+ ## [0.13.5.dblackmon.1] - 2020-05-21
11
+ ### Changed
12
+ - expose 'matched_queries' property
13
+
9
14
  ## [0.13.4] - 2020-05-20
10
15
  ### Changed
11
16
  - Compatibility with Rails 6
12
17
 
18
+
13
19
  ## [0.13.3] - 2020-01-30
14
20
  ### Changed
15
21
  - Release on RubyGems using gem-publisher CircleCI Orb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- es-elasticity (0.13.4)
4
+ es-elasticity (0.13.5.dblackmon.1)
5
5
  activemodel (>= 4.0.0, < 7)
6
6
  activerecord (>= 4.0.0, < 7)
7
7
  activesupport (>= 4.0.0, < 7)
@@ -12,7 +12,7 @@ module Elasticity
12
12
  end
13
13
 
14
14
  # Define common attributes for all documents
15
- attr_accessor :_id, :highlighted, :_score, :sort, :_explanation, :highlighted_attrs
15
+ attr_accessor :_id, :highlighted, :_score, :sort, :_explanation, :highlighted_attrs, :matched_queries
16
16
 
17
17
  def attributes=(attributes)
18
18
  attributes.each do |attr, value|
@@ -150,6 +150,7 @@ module Elasticity
150
150
  attrs.merge!(_score: hit["_score"])
151
151
  attrs.merge!(sort: hit["sort"])
152
152
  attrs.merge!(hit["_source"]) if hit["_source"]
153
+ attrs.merge!(matched_queries: hit["matched_queries"]) if hit["matched_queries"]
153
154
 
154
155
  highlighted = nil
155
156
 
@@ -1,3 +1,3 @@
1
1
  module Elasticity
2
- VERSION = "0.13.4"
2
+ VERSION = "0.13.5.dblackmon.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: es-elasticity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.4
4
+ version: 0.13.5.dblackmon.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Kochenburger
@@ -295,9 +295,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
295
295
  version: '0'
296
296
  required_rubygems_version: !ruby/object:Gem::Requirement
297
297
  requirements:
298
- - - ">="
298
+ - - ">"
299
299
  - !ruby/object:Gem::Version
300
- version: '0'
300
+ version: 1.3.1
301
301
  requirements: []
302
302
  rubygems_version: 3.1.2
303
303
  signing_key: