searchkick 5.2.3 → 5.3.0

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: 41df7b8613c98e6677a942277671253d5ee467d27c01f4524baa88a5785227d3
4
- data.tar.gz: 2867126c284db2a126ee1603604794efa4481f0db5ccd4c49e7601a3e7537c08
3
+ metadata.gz: 18ce029db59c59e668c7c5f4d1e05702d9631f307736251856658eb9b6a20618
4
+ data.tar.gz: c4f72347ed409d994bb44d16a48da881165ce825e0dc00192a7acba2b687318f
5
5
  SHA512:
6
- metadata.gz: ff62e6f39b917dec85128d05cec8e846fdcd8ca2dc59f40f4ac73d135688d06d93233e58185aceb981eb295da1f2a27a8b845e1f7827114b28fd3daf9c741e90
7
- data.tar.gz: 629b8b0a6d544b33fc5c7dd75e72738983e1c2515316994ef052429eeca0f3980e674caa1c86a375147530dd44a2ff87ff28e2b9031f63270ec10f7a24e10e9c
6
+ metadata.gz: b17985dfd054b0fe5579ea1057ab9f052a7dbf54c091628ade76fb86616b7c938ea616f3d0367d486e63d66d037b86866543ae902350c24f9b63f25e079e3859
7
+ data.tar.gz: b576abbc0681e466638164b9b92c8edc5e91c771fd3c538d5b4f8c07597c939be882d4dc9b3cb89e8e43ae913804960c93fdfa2ab8eab1b1cee9566f86adcbd5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 5.3.0 (2023-07-02)
2
+
3
+ - Fixed error with `cutoff_frequency`
4
+ - Dropped support for Ruby < 3 and Active Record < 6.1
5
+ - Dropped support for Mongoid < 7
6
+
7
+ ## 5.2.4 (2023-05-11)
8
+
9
+ - Fixed error with non-string routing and `:async` mode
10
+
1
11
  ## 5.2.3 (2023-04-12)
2
12
 
3
13
  - Fixed error with missing records and multiple models
@@ -373,7 +373,7 @@ module Searchkick
373
373
  field_misspellings = misspellings && (!misspellings_fields || misspellings_fields.include?(base_field(field)))
374
374
 
375
375
  if field == "_all" || field.end_with?(".analyzed")
376
- shared_options[:cutoff_frequency] = 0.001 unless operator.to_s == "and" || field_misspellings == false || (!below73? && !track_total_hits?)
376
+ shared_options[:cutoff_frequency] = 0.001 unless operator.to_s == "and" || field_misspellings == false || (!below73? && !track_total_hits?) || match_type == :match_phrase || !below80? || Searchkick.opensearch?
377
377
  qs << shared_options.merge(analyzer: "searchkick_search")
378
378
 
379
379
  # searchkick_search and searchkick_search2 are the same for some languages
@@ -1170,5 +1170,9 @@ module Searchkick
1170
1170
  def below710?
1171
1171
  Searchkick.server_below?("7.10.0")
1172
1172
  end
1173
+
1174
+ def below80?
1175
+ Searchkick.server_below?("8.0.0")
1176
+ end
1173
1177
  end
1174
1178
  end
@@ -74,7 +74,7 @@ module Searchkick
74
74
  end
75
75
 
76
76
  def escape(value)
77
- value.gsub("|", "||")
77
+ value.to_s.gsub("|", "||")
78
78
  end
79
79
  end
80
80
  end
@@ -1,3 +1,3 @@
1
1
  module Searchkick
2
- VERSION = "5.2.3"
2
+ VERSION = "5.3.0"
3
3
  end
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.3
4
+ version: 5.3.0
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-04-13 00:00:00.000000000 Z
11
+ date: 2023-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.2'
19
+ version: '6.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '5.2'
26
+ version: '6.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: hashie
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -85,7 +85,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: '2.6'
88
+ version: '3'
89
89
  required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
91
  - - ">="