searchkick 5.3.0 → 5.3.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: 18ce029db59c59e668c7c5f4d1e05702d9631f307736251856658eb9b6a20618
4
- data.tar.gz: c4f72347ed409d994bb44d16a48da881165ce825e0dc00192a7acba2b687318f
3
+ metadata.gz: 8646c1e2b5f827947bc43c6d9f3761a3050007d67c8d051a3e70014700148c17
4
+ data.tar.gz: 23d8ab0656e1f2cbaf11aeffedd99ed3b9991271248c2bddc5bf6150cfdfff2c
5
5
  SHA512:
6
- metadata.gz: b17985dfd054b0fe5579ea1057ab9f052a7dbf54c091628ade76fb86616b7c938ea616f3d0367d486e63d66d037b86866543ae902350c24f9b63f25e079e3859
7
- data.tar.gz: b576abbc0681e466638164b9b92c8edc5e91c771fd3c538d5b4f8c07597c939be882d4dc9b3cb89e8e43ae913804960c93fdfa2ab8eab1b1cee9566f86adcbd5
6
+ metadata.gz: 13fa0dd9d4c0fa8f77368403b0a9f717eaf5bcfd714022bcdd23400161ef8939baf7803f3a0773cf6848b6deea9ad46b9e9a67e50871cab07911e4a16f171775
7
+ data.tar.gz: bb2da50a0761be5e90074896c8c020aa7568a3483579bfa0743101199ef20b370b7b0cf3235818c86e69b6e4438cf05e67643a1a192715b5c952253411912dab
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 5.3.1 (2023-11-28)
2
+
3
+ - Fixed error with misspellings below and failed queries
4
+
1
5
  ## 5.3.0 (2023-07-02)
2
6
 
3
7
  - Fixed error with `cutoff_frequency`
data/README.md CHANGED
@@ -1483,7 +1483,15 @@ ENV["ELASTICSEARCH_URL"] = "https://user:password@host1,https://user:password@ho
1483
1483
  ENV["OPENSEARCH_URL"] = "https://user:password@host1,https://user:password@host2"
1484
1484
  ```
1485
1485
 
1486
- See [elastic-transport](https://github.com/elastic/elastic-transport-ruby) or [opensearch-transport](https://github.com/opensearch-project/opensearch-ruby/tree/main/opensearch-transport) for a complete list of options.
1486
+ ### Client Options
1487
+
1488
+ Create an initializer with:
1489
+
1490
+ ```ruby
1491
+ Searchkick.client_options[:reload_connections] = true
1492
+ ```
1493
+
1494
+ See the docs for [Elasticsearch](https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/advanced-config.html) or [Opensearch](https://rubydoc.info/gems/opensearch-transport#configuration) for a complete list of options.
1487
1495
 
1488
1496
  ### Lograge
1489
1497
 
@@ -191,7 +191,7 @@ module Searchkick
191
191
  end
192
192
 
193
193
  def retry_misspellings?(response)
194
- @misspellings_below && Results.new(searchkick_klass, response).total_count < @misspellings_below
194
+ @misspellings_below && response["error"].nil? && Results.new(searchkick_klass, response).total_count < @misspellings_below
195
195
  end
196
196
 
197
197
  private
@@ -1,3 +1,3 @@
1
1
  module Searchkick
2
- VERSION = "5.3.0"
2
+ VERSION = "5.3.1"
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.3.0
4
+ version: 5.3.1
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-07-02 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel