searchkick 5.2.1 → 5.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/LICENSE.txt +1 -1
- data/lib/searchkick/index.rb +2 -1
- data/lib/searchkick/log_subscriber.rb +3 -3
- data/lib/searchkick/results.rb +1 -1
- data/lib/searchkick/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41df7b8613c98e6677a942277671253d5ee467d27c01f4524baa88a5785227d3
|
4
|
+
data.tar.gz: 2867126c284db2a126ee1603604794efa4481f0db5ccd4c49e7601a3e7537c08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff62e6f39b917dec85128d05cec8e846fdcd8ca2dc59f40f4ac73d135688d06d93233e58185aceb981eb295da1f2a27a8b845e1f7827114b28fd3daf9c741e90
|
7
|
+
data.tar.gz: 629b8b0a6d544b33fc5c7dd75e72738983e1c2515316994ef052429eeca0f3980e674caa1c86a375147530dd44a2ff87ff28e2b9031f63270ec10f7a24e10e9c
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## 5.2.3 (2023-04-12)
|
2
|
+
|
3
|
+
- Fixed error with missing records and multiple models
|
4
|
+
|
5
|
+
## 5.2.2 (2023-04-01)
|
6
|
+
|
7
|
+
- Fixed `total_docs` method
|
8
|
+
- Fixed deprecation warning with Active Support 7.1
|
9
|
+
|
1
10
|
## 5.2.1 (2023-02-21)
|
2
11
|
|
3
12
|
- Added support for `redis-client` gem
|
data/LICENSE.txt
CHANGED
data/lib/searchkick/index.rb
CHANGED
@@ -31,7 +31,7 @@ module Searchkick
|
|
31
31
|
params << "#{CGI.escape(k.to_s)}=#{CGI.escape(v.to_s)}"
|
32
32
|
end
|
33
33
|
|
34
|
-
debug " #{color(name, YELLOW, true)} #{index}#{type ? "/#{type.join(',')}" : ''}/_search#{params.any? ? '?' + params.join('&') : nil} #{payload[:query][:body].to_json}"
|
34
|
+
debug " #{color(name, YELLOW, bold: true)} #{index}#{type ? "/#{type.join(',')}" : ''}/_search#{params.any? ? '?' + params.join('&') : nil} #{payload[:query][:body].to_json}"
|
35
35
|
end
|
36
36
|
|
37
37
|
def request(event)
|
@@ -41,7 +41,7 @@ module Searchkick
|
|
41
41
|
payload = event.payload
|
42
42
|
name = "#{payload[:name]} (#{event.duration.round(1)}ms)"
|
43
43
|
|
44
|
-
debug " #{color(name, YELLOW, true)} #{payload.except(:name).to_json}"
|
44
|
+
debug " #{color(name, YELLOW, bold: true)} #{payload.except(:name).to_json}"
|
45
45
|
end
|
46
46
|
|
47
47
|
def multi_search(event)
|
@@ -51,7 +51,7 @@ module Searchkick
|
|
51
51
|
payload = event.payload
|
52
52
|
name = "#{payload[:name]} (#{event.duration.round(1)}ms)"
|
53
53
|
|
54
|
-
debug " #{color(name, YELLOW, true)} _msearch #{payload[:body]}"
|
54
|
+
debug " #{color(name, YELLOW, bold: true)} _msearch #{payload[:body]}"
|
55
55
|
end
|
56
56
|
end
|
57
57
|
end
|
data/lib/searchkick/results.rb
CHANGED
@@ -304,7 +304,7 @@ module Searchkick
|
|
304
304
|
def build_hits
|
305
305
|
@build_hits ||= begin
|
306
306
|
if missing_records.any?
|
307
|
-
Searchkick.warn("Records in search index do not exist in database: #{missing_records.map { |v| "#{v[:model].model_name} #{v[:id]}" }.join(", ")}")
|
307
|
+
Searchkick.warn("Records in search index do not exist in database: #{missing_records.map { |v| "#{Array(v[:model]).map(&:model_name).sort.join("/")} #{v[:id]}" }.join(", ")}")
|
308
308
|
end
|
309
309
|
with_hit_and_missing_records[0]
|
310
310
|
end
|
data/lib/searchkick/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: searchkick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.2.
|
4
|
+
version: 5.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
|
-
rubygems_version: 3.4.
|
95
|
+
rubygems_version: 3.4.10
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: Intelligent search made easy with Rails and Elasticsearch or OpenSearch
|