redi_search 6.0.1 → 6.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/tests.yml +1 -1
- data/.ruby-version +1 -0
- data/bin/console +0 -1
- data/lib/redi_search/model.rb +2 -2
- data/lib/redi_search/version.rb +1 -1
- data/redi_search.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abbf004d9d5da6b9b1a8365f1f6a667b4168f26a6b215a0409eefb9d8f4f5cf9
|
4
|
+
data.tar.gz: 89b83febf81d470c2b99a9e2e78ba89e9714d754c8d9b9ee889c5df3fa23c836
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 566b82144d8637430556a3da5467c416a83a52b040239cc33d21a2786933f4f832384790b3397f48af2040c607a4ebab0ccb77c996a71d4a2dc06ee98c358bf9
|
7
|
+
data.tar.gz: a0ffb2e0db34056b9a8985214801b9065401988540fc3e4e0b0f4ddf1600aac0c8a7c7513e33d95e2f71847df8c788e142bdb99e60cc302f8dfdcf48ed23c17a
|
data/.github/workflows/tests.yml
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.1.2
|
data/bin/console
CHANGED
data/lib/redi_search/model.rb
CHANGED
@@ -43,8 +43,8 @@ module RediSearch
|
|
43
43
|
search_index.spellcheck(term, distance: distance)
|
44
44
|
end
|
45
45
|
|
46
|
-
def reindex(recreate: false, only: [])
|
47
|
-
search_import.find_in_batches.all? do |group|
|
46
|
+
def reindex(recreate: false, only: [], batch_size: 1000)
|
47
|
+
search_import.find_in_batches(batch_size: batch_size).all? do |group|
|
48
48
|
search_index.reindex(
|
49
49
|
group.map { |record| record.search_document(only: only) },
|
50
50
|
recreate: recreate
|
data/lib/redi_search/version.rb
CHANGED
data/redi_search.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.required_ruby_version = ">= 2.7.0"
|
30
30
|
|
31
31
|
spec.add_runtime_dependency "activesupport", ">= 5.1", "< 7.1"
|
32
|
-
spec.add_runtime_dependency "redis", ">= 4.0", "<
|
32
|
+
spec.add_runtime_dependency "redis", ">= 4.0", "< 6.0"
|
33
33
|
spec.add_runtime_dependency "zeitwerk"
|
34
34
|
|
35
35
|
spec.add_development_dependency "bundler", ">= 1.17", "< 3"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redi_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0
|
4
|
+
version: 6.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Pezza
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: '4.0'
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '6.0'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
version: '4.0'
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '6.0'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: zeitwerk
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- ".github/workflows/tests.yml"
|
126
126
|
- ".gitignore"
|
127
127
|
- ".rubocop.yml"
|
128
|
+
- ".ruby-version"
|
128
129
|
- Appraisals
|
129
130
|
- CODE_OF_CONDUCT.md
|
130
131
|
- Gemfile
|