searchkick 4.6.3 → 5.0.2
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 +35 -1
- data/README.md +187 -124
- data/lib/searchkick/bulk_reindex_job.rb +12 -8
- data/lib/searchkick/controller_runtime.rb +40 -0
- data/lib/searchkick/index.rb +146 -65
- data/lib/searchkick/index_cache.rb +30 -0
- data/lib/searchkick/index_options.rb +17 -67
- data/lib/searchkick/indexer.rb +15 -8
- data/lib/searchkick/log_subscriber.rb +57 -0
- data/lib/searchkick/middleware.rb +1 -1
- data/lib/searchkick/model.rb +48 -49
- data/lib/searchkick/process_batch_job.rb +9 -25
- data/lib/searchkick/process_queue_job.rb +3 -2
- data/lib/searchkick/query.rb +38 -54
- data/lib/searchkick/record_data.rb +1 -1
- data/lib/searchkick/record_indexer.rb +136 -52
- data/lib/searchkick/reindex_queue.rb +26 -3
- data/lib/searchkick/reindex_v2_job.rb +10 -34
- data/lib/searchkick/relation.rb +112 -0
- data/lib/searchkick/relation_indexer.rb +150 -0
- data/lib/searchkick/results.rb +27 -28
- data/lib/searchkick/version.rb +1 -1
- data/lib/searchkick.rb +159 -84
- data/lib/tasks/searchkick.rake +6 -3
- metadata +11 -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: 5ebb326348913a8532f1f4e7771bcdb57dda1abe4cc668e4f5bf8fe44bdbc85b
|
4
|
+
data.tar.gz: 57b63c4444b9dbe26bb8decc4ab4dca81e4e037e6642d5728b96549aea0b2131
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f901dfae13328bb168e60cc72559ee2fd624f801456fee1628272c83ed402c4d00a83d3cac2ba978e6ce67c76853ca2dc5c1c0048b11ac34d74bb2b18bc3b974
|
7
|
+
data.tar.gz: '086eb84edef491f27c254cb09ee5bce9ec07bcec46f79b2ca65404041e67bfccd877e30e92e6393ca2117c353ec71e8c632c50615c71e481e89c30c071934dd5'
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,41 @@
|
|
1
|
+
## 5.0.2 (2022-03-03)
|
2
|
+
|
3
|
+
- Fixed index name for inherited models
|
4
|
+
|
5
|
+
## 5.0.1 (2022-02-27)
|
6
|
+
|
7
|
+
- Prefer `mode: :async` over `async: true` for full reindex
|
8
|
+
- Fixed instance method overriding with concerns
|
9
|
+
|
10
|
+
## 5.0.0 (2022-02-21)
|
11
|
+
|
12
|
+
- Searches now use lazy loading (similar to Active Record)
|
13
|
+
- Added `unscope` option to better support working with default scopes
|
14
|
+
- Added support for `:async` and `:queue` modes for `reindex` on relation
|
15
|
+
- Added basic protection from unfiltered parameters to `where` option
|
16
|
+
- Added `models` option to `similar` method
|
17
|
+
- Changed async full reindex to fetch ids instead of using ranges for numeric primary keys with Active Record
|
18
|
+
- Changed `searchkick_index_options` to return symbol keys (instead of mix of strings and symbols)
|
19
|
+
- Changed non-anchored regular expressions to match expected results (previously warned)
|
20
|
+
- Changed record reindex to return `true` to match model and relation reindex
|
21
|
+
- Updated async reindex job to call `search_import` for nested associations
|
22
|
+
- Fixed removing records when `should_index?` is `false` when `reindex` called on relation
|
23
|
+
- Fixed issue with `merge_mappings` for fields that use `searchkick` options
|
24
|
+
- Raise error when `search` called on relations
|
25
|
+
- Raise `ArgumentError` (instead of warning) for invalid regular expression modifiers
|
26
|
+
- Raise `ArgumentError` instead of `RuntimeError` for unknown operators
|
27
|
+
- Removed mapping of `id` to `_id` with `order` option (not supported in Elasticsearch 8)
|
28
|
+
- Removed `wordnet` option (no longer worked)
|
29
|
+
- Removed dependency on `elasticsearch` gem (can use `elasticsearch` or `opensearch-ruby`)
|
30
|
+
- Dropped support for Elasticsearch 6
|
31
|
+
- Dropped support for Ruby < 2.6 and Active Record < 5.2
|
32
|
+
- Dropped support for NoBrainer and Cequel
|
33
|
+
- Dropped support for `faraday_middleware-aws-signers-v4` (use `faraday_middleware-aws-sigv4` instead)
|
34
|
+
|
1
35
|
## 4.6.3 (2021-11-19)
|
2
36
|
|
3
37
|
- Added support for reloadable synonyms for OpenSearch
|
4
|
-
- Added experimental support for `opensearch` gem
|
38
|
+
- Added experimental support for `opensearch-ruby` gem
|
5
39
|
- Removed `elasticsearch-xpack` dependency for reloadable synonyms
|
6
40
|
|
7
41
|
## 4.6.2 (2021-11-15)
|