searchkick 4.4.3 → 4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7aee5e029431f1fd4579a1d516685ba2920de38baf458ecd703e5500b9c0cee
4
- data.tar.gz: 6dde3b60089496b874e43870c1506c54e25d0f5ca857fb96f1aa29880a110260
3
+ metadata.gz: 864e600f47d8f3cc55c5664f04b71a1eb054bdad20acd5eb206a77bdeed03503
4
+ data.tar.gz: 2dcd69102ab91f46209dd345cf180309729d470423fb0832fa8e6ed0772cfa45
5
5
  SHA512:
6
- metadata.gz: 5a242a1c7190e5545bb0c9ffb902d711c360637da770c4f35a560abb34889f3cd8bec4e6efc989aad18c8c9c7aef00e46a7d70a3631e66f44322894f9540ce84
7
- data.tar.gz: bed6eb9390d71a22791bb7a294c5e2adc2f26dec43c946f9fa5f3c850e0dc44d428e9ee8eda828c218b559484f35c8fe12b9503eaae0a643f0d72ee8e004a88e
6
+ metadata.gz: c687faaae288a53c7ec5260c501c390c0c27cef372cb76dea4caeaa4bdbd6554ccf627ba10a82fe8202f236d84ee00e8872632316f66e0cc89fe4f3900e017a0
7
+ data.tar.gz: c61486f67dc88dee390022aacb91f45278559d23cf62dd7a9f9468aa2e317b0d643a7f500162608e81496c750987e39391b1200a1d2f0528985187b32b094f53
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
- ## 4.4.3 (2020-02-25)
1
+ ## 4.4.4 (2021-03-12)
2
+
3
+ - Fixed `too_long_frame_exception` with `scroll` method
4
+ - Fixed multi-word emoji tokenization
5
+
6
+ ## 4.4.3 (2021-02-25)
2
7
 
3
8
  - Added support for Hunspell
4
9
  - Fixed warning about accessing system indices
data/README.md CHANGED
@@ -311,7 +311,7 @@ class Product < ApplicationRecord
311
311
  end
312
312
  ```
313
313
 
314
- See the [list of languages](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-stemmer-tokenfilter.html). A few languages require plugins:
314
+ See the [list of languages](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-stemmer-tokenfilter.html#analysis-stemmer-tokenfilter-configure-parms). A few languages require plugins:
315
315
 
316
316
  - `chinese` - [analysis-ik plugin](https://github.com/medcl/elasticsearch-analysis-ik)
317
317
  - `chinese2` - [analysis-smartcn plugin](https://www.elastic.co/guide/en/elasticsearch/plugins/7.4/analysis-smartcn.html)
@@ -161,6 +161,7 @@ module Searchkick
161
161
  RecordData.new(self, record).document_type
162
162
  end
163
163
 
164
+ # TODO use like: [{_index: ..., _id: ...}] in Searchkick 5
164
165
  def similar_record(record, **options)
165
166
  like_text = retrieve(record).to_hash
166
167
  .keep_if { |k, _| !options[:fields] || options[:fields].map(&:to_s).include?(k) }
@@ -25,7 +25,7 @@ module Searchkick
25
25
  term = term.to_s
26
26
 
27
27
  if options[:emoji]
28
- term = EmojiParser.parse_unicode(term) { |e| " #{e.name} " }.strip
28
+ term = EmojiParser.parse_unicode(term) { |e| " #{e.name.tr('_', ' ')} " }.strip
29
29
  end
30
30
 
31
31
  @klass = klass
@@ -188,14 +188,9 @@ module Searchkick
188
188
 
189
189
  records.clear_scroll
190
190
  else
191
- params = {
192
- scroll: options[:scroll],
193
- scroll_id: scroll_id
194
- }
195
-
196
191
  begin
197
192
  # TODO Active Support notifications for this scroll call
198
- Searchkick::Results.new(@klass, Searchkick.client.scroll(params), @options)
193
+ Searchkick::Results.new(@klass, Searchkick.client.scroll(scroll: options[:scroll], body: {scroll_id: scroll_id}), @options)
199
194
  rescue Elasticsearch::Transport::Transport::Errors::NotFound => e
200
195
  if e.class.to_s =~ /NotFound/ && e.message =~ /search_context_missing_exception/i
201
196
  raise Searchkick::Error, "Scroll id has expired"
@@ -1,3 +1,3 @@
1
1
  module Searchkick
2
- VERSION = "4.4.3"
2
+ VERSION = "4.4.4"
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: 4.4.3
4
+ version: 4.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-25 00:00:00.000000000 Z
11
+ date: 2021-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel