searchkick 4.6.3 → 5.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +79 -1
- data/README.md +321 -203
- data/lib/searchkick/bulk_reindex_job.rb +12 -8
- data/lib/searchkick/controller_runtime.rb +40 -0
- data/lib/searchkick/index.rb +149 -67
- data/lib/searchkick/index_cache.rb +30 -0
- data/lib/searchkick/index_options.rb +19 -69
- data/lib/searchkick/indexer.rb +15 -8
- data/lib/searchkick/log_subscriber.rb +57 -0
- data/lib/searchkick/middleware.rb +9 -2
- data/lib/searchkick/model.rb +49 -50
- data/lib/searchkick/process_batch_job.rb +9 -25
- data/lib/searchkick/process_queue_job.rb +3 -2
- data/lib/searchkick/query.rb +51 -57
- data/lib/searchkick/record_data.rb +1 -1
- data/lib/searchkick/record_indexer.rb +136 -52
- data/lib/searchkick/reindex_queue.rb +36 -8
- data/lib/searchkick/reindex_v2_job.rb +10 -34
- data/lib/searchkick/relation.rb +247 -0
- data/lib/searchkick/relation_indexer.rb +155 -0
- data/lib/searchkick/results.rb +29 -28
- data/lib/searchkick/version.rb +1 -1
- data/lib/searchkick/where.rb +11 -0
- data/lib/searchkick.rb +175 -98
- data/lib/tasks/searchkick.rake +6 -3
- metadata +12 -28
- data/lib/searchkick/bulk_indexer.rb +0 -173
- data/lib/searchkick/logging.rb +0 -246
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3ada9c260b4ad16858d70480fafdc92d6bcbbeea240a628d832e5aaba4fea10
|
4
|
+
data.tar.gz: b9e48dc70ddfd83b10eeb1c02d572b6aaba66075c494c94fb8dd8450f7e39e7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9509e82eb6257fd25334e0527bb3bd890e5a40edc6710354700ebb826048888b1549756b3b34089de434f38517a53b648ae896ad1478e688a93a886a70d7675
|
7
|
+
data.tar.gz: 9b79d9dfad68255deccf6af74586ce877026652091b37baeeb60ec56f3af6b4923525846a68b7d3d008ed3baa81b1f765b76d2b6f68e6d014bcfa5ac413b4ad0
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,85 @@
|
|
1
|
+
## 5.2.2 (2023-04-01)
|
2
|
+
|
3
|
+
- Fixed `total_docs` method
|
4
|
+
- Fixed deprecation warning with Active Support 7.1
|
5
|
+
|
6
|
+
## 5.2.1 (2023-02-21)
|
7
|
+
|
8
|
+
- Added support for `redis-client` gem
|
9
|
+
|
10
|
+
## 5.2.0 (2023-02-08)
|
11
|
+
|
12
|
+
- Added model name to warning about missing records
|
13
|
+
- Fixed unnecessary data loading when reindexing relations with `:async` and `:queue` modes
|
14
|
+
|
15
|
+
## 5.1.2 (2023-01-29)
|
16
|
+
|
17
|
+
- Fixed error with missing point in time
|
18
|
+
|
19
|
+
## 5.1.1 (2022-12-05)
|
20
|
+
|
21
|
+
- Added support for strings for `offset` and `per_page`
|
22
|
+
|
23
|
+
## 5.1.0 (2022-10-12)
|
24
|
+
|
25
|
+
- Added support for fractional search timeout
|
26
|
+
- Fixed search timeout with `elasticsearch` 8+ and `opensearch-ruby` gems
|
27
|
+
- Fixed search timeout not applying to `multi_search`
|
28
|
+
|
29
|
+
## 5.0.5 (2022-10-09)
|
30
|
+
|
31
|
+
- Added `model` method to `Searchkick::Relation`
|
32
|
+
- Fixed deprecation warning with `redis` gem
|
33
|
+
- Fixed `respond_to?` method on relation loading relation
|
34
|
+
- Fixed `Relation loaded` error for non-mutating methods on relation
|
35
|
+
|
36
|
+
## 5.0.4 (2022-06-16)
|
37
|
+
|
38
|
+
- Added `max_result_window` option
|
39
|
+
- Improved error message for unsupported versions of Elasticsearch
|
40
|
+
|
41
|
+
## 5.0.3 (2022-03-13)
|
42
|
+
|
43
|
+
- Fixed context for index name for inherited models
|
44
|
+
|
45
|
+
## 5.0.2 (2022-03-03)
|
46
|
+
|
47
|
+
- Fixed index name for inherited models
|
48
|
+
|
49
|
+
## 5.0.1 (2022-02-27)
|
50
|
+
|
51
|
+
- Prefer `mode: :async` over `async: true` for full reindex
|
52
|
+
- Fixed instance method overriding with concerns
|
53
|
+
|
54
|
+
## 5.0.0 (2022-02-21)
|
55
|
+
|
56
|
+
- Searches now use lazy loading (similar to Active Record)
|
57
|
+
- Added `unscope` option to better support working with default scopes
|
58
|
+
- Added support for `:async` and `:queue` modes for `reindex` on relation
|
59
|
+
- Added basic protection from unfiltered parameters to `where` option
|
60
|
+
- Added `models` option to `similar` method
|
61
|
+
- Changed async full reindex to fetch ids instead of using ranges for numeric primary keys with Active Record
|
62
|
+
- Changed `searchkick_index_options` to return symbol keys (instead of mix of strings and symbols)
|
63
|
+
- Changed non-anchored regular expressions to match expected results (previously warned)
|
64
|
+
- Changed record reindex to return `true` to match model and relation reindex
|
65
|
+
- Updated async reindex job to call `search_import` for nested associations
|
66
|
+
- Fixed removing records when `should_index?` is `false` when `reindex` called on relation
|
67
|
+
- Fixed issue with `merge_mappings` for fields that use `searchkick` options
|
68
|
+
- Raise error when `search` called on relations
|
69
|
+
- Raise `ArgumentError` (instead of warning) for invalid regular expression modifiers
|
70
|
+
- Raise `ArgumentError` instead of `RuntimeError` for unknown operators
|
71
|
+
- Removed mapping of `id` to `_id` with `order` option (not supported in Elasticsearch 8)
|
72
|
+
- Removed `wordnet` option (no longer worked)
|
73
|
+
- Removed dependency on `elasticsearch` gem (can use `elasticsearch` or `opensearch-ruby`)
|
74
|
+
- Dropped support for Elasticsearch 6
|
75
|
+
- Dropped support for Ruby < 2.6 and Active Record < 5.2
|
76
|
+
- Dropped support for NoBrainer and Cequel
|
77
|
+
- Dropped support for `faraday_middleware-aws-signers-v4` (use `faraday_middleware-aws-sigv4` instead)
|
78
|
+
|
1
79
|
## 4.6.3 (2021-11-19)
|
2
80
|
|
3
81
|
- Added support for reloadable synonyms for OpenSearch
|
4
|
-
- Added experimental support for `opensearch` gem
|
82
|
+
- Added experimental support for `opensearch-ruby` gem
|
5
83
|
- Removed `elasticsearch-xpack` dependency for reloadable synonyms
|
6
84
|
|
7
85
|
## 4.6.2 (2021-11-15)
|