es-elasticity 0.14.0.jhumphreys → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45c241fb10e66d1410888110d39ea29e6f40c9781143af2a90a3552506e31f79
4
- data.tar.gz: 16c9990ba2d5c6e53e7fcc595b19edfb6deeabbb2b88f7fee9da3db10c7cd8a6
3
+ metadata.gz: f763406d566849e72f652ee3d644589762397bfcdac5801b235eb613677aabec
4
+ data.tar.gz: 6a2c0c9c241b5ebe21193859a62e327a4299c9687fc009fc2ea499175654e8e9
5
5
  SHA512:
6
- metadata.gz: c347ccfebf05cad02bf0d4ee337fe3d3c260592c9434c74e56fa24803c862feacbf92fdee2bcd0571a0c2a5adc7327f06a41e0879c936b415ab4dab45e658352
7
- data.tar.gz: fb62c2e4b6e1e99703751ca0f66c652d2d6669c857e3013cdf64c3194a31b52603b6be96f6bba66a9d370165c87d75cc3c48045a9000d8051ded94e2ae7bd89e
6
+ metadata.gz: a8af0dbe6ea25b1f1d212650f5d67b1dc47af098b97c2516ac381e07f65280cccb98b60cc95ecf20cc3414d489083ca90931c526c2f4ccc8c6afcad0ad0a7fdc
7
+ data.tar.gz: 47a5134a710862f9aff3b0a8038ac60be092f507e2ce4de15b3ff2d5f9053f4c0293c7335b4506610d80f456b1dd09b5f634abdf654904a22ac88beeafe2d961
data/CHANGELOG.md CHANGED
@@ -6,54 +6,40 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- ## [0.14.0.jhumphreys] - 2022-08-03
10
-
9
+ ## [0.14.0] - 2022-08-04
11
10
  ### Changed
12
-
13
11
  - Use `refresh` instead of `flush` where search is expected to be updated
14
12
  - Drop support for Ruby 2.5 and 2.6
15
13
  - Add support for Ruby 2.7 and 3.0, build against Ruby 3.1
16
14
  - Set `search_type` to `query_then_fetch` as we no longer support Elasticsearch version < 7.0
17
15
  - Set `include_type_name` when fetching the mapping. Will be removed in the next version to support ES version 8.
18
16
  - Index names automatically use the new timestamp format when creating an index.
19
- - Don't raise an exception when index doesn't exist when calling `missing?` in SingleIndex strategy.
20
17
 
21
18
  ## [0.13.5] - 2020-05-21
22
-
23
19
  ### Changed
24
-
25
20
  - expose 'matched_queries' property
26
21
 
27
22
  ## [0.13.4] - 2020-05-20
28
-
29
23
  ### Changed
30
-
31
24
  - Compatibility with Rails 6
32
25
 
33
- ## [0.13.3] - 2020-01-30
34
26
 
27
+ ## [0.13.3] - 2020-01-30
35
28
  ### Changed
36
-
37
29
  - Release on RubyGems using gem-publisher CircleCI Orb
38
30
 
39
31
  ## [0.13.2] - 2020-01-29
40
-
41
32
  ### Changed
42
-
43
33
  - Release on Nexus using gem-publisher CircleCI Orb
44
34
  - Packing gems
45
35
  - bump the version for testing the Nexus repo
46
36
 
47
37
  ## [0.13.1]
48
-
49
38
  ### Changed
50
-
51
39
  - remove superfluous 'to_ary' delegation that was causing issues downstream
52
40
 
53
41
  ## [0.13.0]
54
-
55
42
  ### Changed
56
-
57
43
  - changes needed for use with Elasticsearch v7
58
44
  - handle the v7 "total" as an object rather than a scalar
59
45
  - use timestamp with no colons
@@ -62,165 +48,114 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
62
48
  - allow for optional 'include_type_name_on_create' arg so that the :include_type_name can be passed
63
49
 
64
50
  ## [0.12.1]
65
-
66
51
  ### Changed
67
-
68
52
  - use Arel.sql to avoid unsafe sql and eliminate deprecation warnings when used in Rails projects
69
53
 
70
54
  ## [0.12.0]
71
-
72
55
  ### Changed
73
-
74
56
  - warn when configuring a index with subclasses if using ES version that does support them
75
57
  - raise exception when creating or adding document to an index configured with subclasses if using an ES version that does not support them
76
58
 
77
59
  ## [0.11.5]
78
-
79
60
  ### Changed
80
-
81
61
  - Give the option of retrying the deletion for certain exceptions during remap
82
62
 
83
63
  ## [0.11.4]
84
-
85
64
  ### Changed
86
-
87
65
  - Fully clean up if error occurs during remap (assign all aliases back to original index)
88
66
 
89
67
  ## [0.11.3]
90
-
91
68
  ### Added
92
-
93
69
  - Adds support for preserving the order or normalized names of `highlight` through `highlighted_attrs`
94
70
 
95
71
  ## [0.11.2]
96
-
97
72
  ### Added
98
-
99
73
  - Adds support for passing arguments to Search definition through `search(query, search_args)` in index searching and msearch
100
74
  - adds `_explanation` to hold value of returned explanations in the base document
101
75
 
102
76
  ## [0.11.1]
103
-
104
77
  ### Changed
105
-
106
78
  - support `action.destructive_requires_name` setting by being explict about which indices to delete
107
79
 
108
80
  ## [0.11.0]
109
-
110
81
  ### Changed
111
-
112
82
  - compatibilty with ES v6
113
83
  - change mappings for 'index' to boolean. "string" type was replaced with "text"
114
84
  - use "successful" from API response ('created' was removed)
115
85
  - stringify keys for :mappings so clients can use symbol keys
116
86
 
117
87
  ## [0.10.0]
118
-
119
88
  ### Changed
120
-
121
89
  - update remap to removing fields from the mapping that are not explicitly defined.
122
90
 
123
91
  ## [0.9.1]
124
-
125
92
  ### Changed
126
-
127
93
  - fix search enumerator, missing first result set
128
94
 
129
95
  ## [0.8.3]
130
-
131
96
  ### Changed
132
-
133
97
  - fix remap method to use the scan api properly.
134
98
 
135
99
  ## [0.8.2]
136
-
137
100
  ### Changed
138
-
139
101
  - fix scan api to work with more recent versions of elasticsearch ruby.
140
102
 
141
103
  ## [0.8.1]
142
-
143
104
  ### Changed
144
-
145
105
  - loosen support for elasticsearch-ruby versions to support more versions of elasticsearch
146
106
 
147
107
  ## [0.8.0]
148
-
149
108
  ### Changed
150
-
151
109
  - Make Elasticity::Strategies::AliasIndex the default
152
110
  - Use mapping instead of mappings, we wanna be consistent to ES not to elasticsearch-ruby
153
111
  - Better automatic index name and document type
154
112
 
155
113
  ## [v0.7.1]
156
-
157
114
  ### Added
158
-
159
115
  - add more response info to raised exceptions from reindexing
160
116
 
161
117
  ## [v0.6.5]
162
-
163
118
  ### Changed
164
-
165
119
  - update search and multi search interfaces to allow passing of general search definition arguments found in https://github.com/elastic/elasticsearch-ruby/blob/bdf5e145e5acc21726dddcd34492debbbddde568/elasticsearch-api/lib/elasticsearch/api/actions/search.rb#L125-L162
166
120
 
167
121
  ## [v0.6.4]
168
-
169
122
  ### Changed
170
-
171
123
  - update suggestions to pull from the proper key
172
124
 
173
125
  ## [v0.6.3]
174
-
175
126
  ### Added
176
-
177
127
  - add next_page and previous_page to be compatible with will_paginate interface
178
128
 
179
129
  ## [0.6.2]
180
-
181
130
  ### Changed
182
-
183
131
  - update multi search `[]` method to raise an exception with key name to make it easier to debug failed queries within a multi search hash.
184
132
 
185
133
  ## [0.6.0]
186
-
187
134
  ### Changed
188
-
189
- - Change documents to be able to define indexes with multiple doc types. A Document class can define subclasses which are of different doc_types and all live in the same index's mappings.
135
+ - Change documents to be able to define indexes with multiple doc types. A Document class can define subclasses which are of different doc_types and all live in the same index's mappings.
190
136
  - updated search queries to pass either a list of document types or a single document type.
191
137
  - Update documents to generate a default document_type from the class name so that Documents always have a document type. You'll still usually want to manually define the document type, but it's no longer necessary.
192
138
 
193
139
  ## [0.5.2]
194
-
195
140
  ### Added
196
-
197
141
  - Add aggregations to multi_search
198
142
 
199
143
  ## [0.5.1]
200
-
201
144
  ### Added
202
-
203
145
  - Add ability to reindex individual attributes of a document using the bulk_update API.
204
146
 
205
147
  ## [v0.5.0]
206
-
207
148
  ### Changed
208
-
209
149
  - Refactor of multisearch and search facade
210
150
  - Searches no longer return a simple array, they now return the Search::Results object which proxies array and is enumerable.
211
151
 
212
152
  ### Added
213
-
214
153
  - add Search::Results proxy object so pagination and meta data methods can be standardize across all responses
215
154
 
216
155
  ## [v0.4.5]
217
-
218
156
  ### Changed
219
-
220
157
  - Fix issue with hash strings and pagination
221
158
 
222
159
  ## [v0.4.4]
223
-
224
160
  ### Added
225
-
226
161
  - Added support for surfacing document `_score` on query results.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- es-elasticity (0.14.0.jhumphreys)
4
+ es-elasticity (0.14.0)
5
5
  activemodel (>= 5.2.0, < 7.1)
6
6
  activerecord (>= 5.2.0, < 7.1)
7
7
  activesupport (>= 5.2.0, < 7.1)
@@ -210,7 +210,6 @@ module Elasticity
210
210
  end
211
211
 
212
212
  def delete
213
- # @client.index_delete_alias(index: "#{@main_alias}-*", name: "_all")
214
213
  main_indexes.each do |index|
215
214
  @client.index_delete(index: index)
216
215
  end
@@ -24,7 +24,7 @@ module Elasticity
24
24
  end
25
25
 
26
26
  def missing?
27
- not @client.index_exists(index: @index_name, ignore: 404)
27
+ not @client.index_exists(index: @index_name)
28
28
  end
29
29
 
30
30
  def create(index_def)
@@ -1,3 +1,3 @@
1
1
  module Elasticity
2
- VERSION = "0.14.0.jhumphreys"
2
+ VERSION = "0.14.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: es-elasticity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0.jhumphreys
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Kochenburger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-03 00:00:00.000000000 Z
11
+ date: 2022-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -300,9 +300,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
300
300
  version: '0'
301
301
  required_rubygems_version: !ruby/object:Gem::Requirement
302
302
  requirements:
303
- - - ">"
303
+ - - ">="
304
304
  - !ruby/object:Gem::Version
305
- version: 1.3.1
305
+ version: '0'
306
306
  requirements: []
307
307
  rubygems_version: 3.3.11
308
308
  signing_key: