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 +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +1 -1
- data/lib/searchkick/index.rb +1 -0
- data/lib/searchkick/query.rb +1 -1
- data/lib/searchkick/results.rb +1 -6
- data/lib/searchkick/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 864e600f47d8f3cc55c5664f04b71a1eb054bdad20acd5eb206a77bdeed03503
|
|
4
|
+
data.tar.gz: 2dcd69102ab91f46209dd345cf180309729d470423fb0832fa8e6ed0772cfa45
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c687faaae288a53c7ec5260c501c390c0c27cef372cb76dea4caeaa4bdbd6554ccf627ba10a82fe8202f236d84ee00e8872632316f66e0cc89fe4f3900e017a0
|
|
7
|
+
data.tar.gz: c61486f67dc88dee390022aacb91f45278559d23cf62dd7a9f9468aa2e317b0d643a7f500162608e81496c750987e39391b1200a1d2f0528985187b32b094f53
|
data/CHANGELOG.md
CHANGED
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)
|
data/lib/searchkick/index.rb
CHANGED
|
@@ -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) }
|
data/lib/searchkick/query.rb
CHANGED
data/lib/searchkick/results.rb
CHANGED
|
@@ -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(
|
|
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"
|
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: 4.4.
|
|
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-
|
|
11
|
+
date: 2021-03-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|