searchkick 4.6.3 → 5.5.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 +142 -2
- data/LICENSE.txt +1 -1
- data/README.md +424 -228
- data/lib/searchkick/bulk_reindex_job.rb +12 -8
- data/lib/searchkick/controller_runtime.rb +40 -0
- data/lib/searchkick/index.rb +152 -67
- data/lib/searchkick/index_cache.rb +30 -0
- data/lib/searchkick/index_options.rb +102 -68
- 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 +50 -51
- data/lib/searchkick/process_batch_job.rb +9 -25
- data/lib/searchkick/process_queue_job.rb +3 -2
- data/lib/searchkick/query.rb +212 -69
- data/lib/searchkick/railtie.rb +1 -1
- 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/reranking.rb +28 -0
- data/lib/searchkick/results.rb +29 -28
- data/lib/searchkick/script.rb +11 -0
- data/lib/searchkick/version.rb +1 -1
- data/lib/searchkick/where.rb +11 -0
- data/lib/searchkick.rb +197 -95
- data/lib/tasks/searchkick.rake +6 -3
- metadata +14 -32
- 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: 0dcc2cd0d75261c06eb8fcde9f02cb7a3e4d76e2e092637674bc746362bcf538
|
4
|
+
data.tar.gz: c75262636ff5a1a81da94cfd6c22cd2894ef47775c89f3bfbdb43b9393bb3df3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db569b2dd7e4a886f969ecb46c7efbdb3a4a85cacb5ca1fd5e73aed042ddc002866e7832e797efaa94b16940bb1720f7951cbcfdb13019c4bded61f016b844cb
|
7
|
+
data.tar.gz: 2faeab514b83caf7ada0fc59a9d26699a5a2e67670ecb2cac15e0ed539bc6f06c7a74736f608be96753d238e441af4e2c27e9bea2b9b49a5b2bfe41236853ef3
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,129 @@
|
|
1
|
+
## 5.5.2 (2025-05-20)
|
2
|
+
|
3
|
+
- Fixed `scope` option for partial reindex
|
4
|
+
|
5
|
+
## 5.5.1 (2025-04-24)
|
6
|
+
|
7
|
+
- Added support for `elasticsearch` 9 gem
|
8
|
+
|
9
|
+
## 5.5.0 (2025-04-03)
|
10
|
+
|
11
|
+
- Added `m` and `ef_construction` to `knn` index option
|
12
|
+
- Added `ef_search` to `knn` search option
|
13
|
+
- Fixed exact cosine distance for OpenSearch 2.19+
|
14
|
+
- Dropped support for Ruby < 3.2 and Active Record < 7.1
|
15
|
+
- Dropped support for Mongoid < 8
|
16
|
+
|
17
|
+
## 5.4.0 (2024-09-04)
|
18
|
+
|
19
|
+
- Added `knn` option
|
20
|
+
- Added `rrf` method
|
21
|
+
- Added experimental support for scripting to `where` option
|
22
|
+
- Added warning for `exists` with non-`true` values
|
23
|
+
- Added warning for full reindex and `:queue` mode
|
24
|
+
- Fixed `per_page` method when paginating beyond `max_result_window`
|
25
|
+
- Dropped support for Ruby < 3.1
|
26
|
+
|
27
|
+
## 5.3.1 (2023-11-28)
|
28
|
+
|
29
|
+
- Fixed error with misspellings below and failed queries
|
30
|
+
|
31
|
+
## 5.3.0 (2023-07-02)
|
32
|
+
|
33
|
+
- Fixed error with `cutoff_frequency`
|
34
|
+
- Dropped support for Ruby < 3 and Active Record < 6.1
|
35
|
+
- Dropped support for Mongoid < 7
|
36
|
+
|
37
|
+
## 5.2.4 (2023-05-11)
|
38
|
+
|
39
|
+
- Fixed error with non-string routing and `:async` mode
|
40
|
+
|
41
|
+
## 5.2.3 (2023-04-12)
|
42
|
+
|
43
|
+
- Fixed error with missing records and multiple models
|
44
|
+
|
45
|
+
## 5.2.2 (2023-04-01)
|
46
|
+
|
47
|
+
- Fixed `total_docs` method
|
48
|
+
- Fixed deprecation warning with Active Support 7.1
|
49
|
+
|
50
|
+
## 5.2.1 (2023-02-21)
|
51
|
+
|
52
|
+
- Added support for `redis-client` gem
|
53
|
+
|
54
|
+
## 5.2.0 (2023-02-08)
|
55
|
+
|
56
|
+
- Added model name to warning about missing records
|
57
|
+
- Fixed unnecessary data loading when reindexing relations with `:async` and `:queue` modes
|
58
|
+
|
59
|
+
## 5.1.2 (2023-01-29)
|
60
|
+
|
61
|
+
- Fixed error with missing point in time
|
62
|
+
|
63
|
+
## 5.1.1 (2022-12-05)
|
64
|
+
|
65
|
+
- Added support for strings for `offset` and `per_page`
|
66
|
+
|
67
|
+
## 5.1.0 (2022-10-12)
|
68
|
+
|
69
|
+
- Added support for fractional search timeout
|
70
|
+
- Fixed search timeout with `elasticsearch` 8+ and `opensearch-ruby` gems
|
71
|
+
- Fixed search timeout not applying to `multi_search`
|
72
|
+
|
73
|
+
## 5.0.5 (2022-10-09)
|
74
|
+
|
75
|
+
- Added `model` method to `Searchkick::Relation`
|
76
|
+
- Fixed deprecation warning with `redis` gem
|
77
|
+
- Fixed `respond_to?` method on relation loading relation
|
78
|
+
- Fixed `Relation loaded` error for non-mutating methods on relation
|
79
|
+
|
80
|
+
## 5.0.4 (2022-06-16)
|
81
|
+
|
82
|
+
- Added `max_result_window` option
|
83
|
+
- Improved error message for unsupported versions of Elasticsearch
|
84
|
+
|
85
|
+
## 5.0.3 (2022-03-13)
|
86
|
+
|
87
|
+
- Fixed context for index name for inherited models
|
88
|
+
|
89
|
+
## 5.0.2 (2022-03-03)
|
90
|
+
|
91
|
+
- Fixed index name for inherited models
|
92
|
+
|
93
|
+
## 5.0.1 (2022-02-27)
|
94
|
+
|
95
|
+
- Prefer `mode: :async` over `async: true` for full reindex
|
96
|
+
- Fixed instance method overriding with concerns
|
97
|
+
|
98
|
+
## 5.0.0 (2022-02-21)
|
99
|
+
|
100
|
+
- Searches now use lazy loading (similar to Active Record)
|
101
|
+
- Added `unscope` option to better support working with default scopes
|
102
|
+
- Added support for `:async` and `:queue` modes for `reindex` on relation
|
103
|
+
- Added basic protection from unfiltered parameters to `where` option
|
104
|
+
- Added `models` option to `similar` method
|
105
|
+
- Changed async full reindex to fetch ids instead of using ranges for numeric primary keys with Active Record
|
106
|
+
- Changed `searchkick_index_options` to return symbol keys (instead of mix of strings and symbols)
|
107
|
+
- Changed non-anchored regular expressions to match expected results (previously warned)
|
108
|
+
- Changed record reindex to return `true` to match model and relation reindex
|
109
|
+
- Updated async reindex job to call `search_import` for nested associations
|
110
|
+
- Fixed removing records when `should_index?` is `false` when `reindex` called on relation
|
111
|
+
- Fixed issue with `merge_mappings` for fields that use `searchkick` options
|
112
|
+
- Raise error when `search` called on relations
|
113
|
+
- Raise `ArgumentError` (instead of warning) for invalid regular expression modifiers
|
114
|
+
- Raise `ArgumentError` instead of `RuntimeError` for unknown operators
|
115
|
+
- Removed mapping of `id` to `_id` with `order` option (not supported in Elasticsearch 8)
|
116
|
+
- Removed `wordnet` option (no longer worked)
|
117
|
+
- Removed dependency on `elasticsearch` gem (can use `elasticsearch` or `opensearch-ruby`)
|
118
|
+
- Dropped support for Elasticsearch 6
|
119
|
+
- Dropped support for Ruby < 2.6 and Active Record < 5.2
|
120
|
+
- Dropped support for NoBrainer and Cequel
|
121
|
+
- Dropped support for `faraday_middleware-aws-signers-v4` (use `faraday_middleware-aws-sigv4` instead)
|
122
|
+
|
1
123
|
## 4.6.3 (2021-11-19)
|
2
124
|
|
3
125
|
- Added support for reloadable synonyms for OpenSearch
|
4
|
-
- Added experimental support for `opensearch` gem
|
126
|
+
- Added experimental support for `opensearch-ruby` gem
|
5
127
|
- Removed `elasticsearch-xpack` dependency for reloadable synonyms
|
6
128
|
|
7
129
|
## 4.6.2 (2021-11-15)
|
@@ -727,4 +849,22 @@ Breaking changes
|
|
727
849
|
|
728
850
|
## 0.1.2 (2013-07-30)
|
729
851
|
|
730
|
-
-
|
852
|
+
- Use conversions by default
|
853
|
+
|
854
|
+
## 0.1.1 (2013-07-29)
|
855
|
+
|
856
|
+
- Renamed `_source` to `search_data`
|
857
|
+
- Renamed `searchkick_import` to `search_import`
|
858
|
+
|
859
|
+
## 0.1.0 (2013-07-28)
|
860
|
+
|
861
|
+
- Added `_source` method
|
862
|
+
- Added `index_name` option
|
863
|
+
|
864
|
+
## 0.0.2 (2013-07-17)
|
865
|
+
|
866
|
+
- Added `conversions` option
|
867
|
+
|
868
|
+
## 0.0.1 (2013-07-14)
|
869
|
+
|
870
|
+
- First release
|
data/LICENSE.txt
CHANGED