estella 7.0.1 → 7.0.3
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/.circleci/config.yml +12 -3
- data/.github/workflows/run-conventional-commits-check.yml +9 -0
- data/CHANGELOG.md +7 -1
- data/estella.gemspec +2 -0
- data/lib/estella/analysis.rb +2 -2
- data/lib/estella/version.rb +1 -1
- metadata +24 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 21078e646bc6690189e0959da6a41686910e095a926d6f64ec46f6a55fb0e49b
|
|
4
|
+
data.tar.gz: 9125479478089c65d458914f11b198b22bb15d99b4f6750f40a4f886f93437dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 16fa7368541968ad686661f0b1326968a6749a414d6f73682b7d0442db827d11b7ed8bbef7131d53c9a01311123175eaafac0d5ba91f37601fabedbb76bd00a9
|
|
7
|
+
data.tar.gz: bff3b40524106d83b9e5b27ad1f452af2d4654ee91ec8d76477b282b114fe46296945ca3bbc0f001fe10d29bc24723b37db7fabab37d767e2a0c42ad21deda56
|
data/.circleci/config.yml
CHANGED
|
@@ -4,12 +4,18 @@ jobs:
|
|
|
4
4
|
test:
|
|
5
5
|
docker:
|
|
6
6
|
- image: "cimg/ruby:<< parameters.ruby_version >>"
|
|
7
|
-
- image:
|
|
7
|
+
- image: "<< parameters.search_image >>"
|
|
8
8
|
environment:
|
|
9
9
|
- discovery.type: single-node
|
|
10
|
+
# the following are ignored by elasticsearch images
|
|
11
|
+
- DISABLE_SECURITY_PLUGIN: "true"
|
|
12
|
+
- DISABLE_INSTALL_DEMO_CONFIG: "true"
|
|
13
|
+
- OPENSEARCH_JAVA_OPTS: "-Xms512m -Xmx512m"
|
|
10
14
|
parameters:
|
|
11
15
|
ruby_version:
|
|
12
16
|
type: string
|
|
17
|
+
search_image:
|
|
18
|
+
type: string
|
|
13
19
|
steps:
|
|
14
20
|
- checkout
|
|
15
21
|
- run:
|
|
@@ -19,8 +25,8 @@ jobs:
|
|
|
19
25
|
name: Print ruby version
|
|
20
26
|
command: ruby -v
|
|
21
27
|
- run:
|
|
22
|
-
name: Wait for
|
|
23
|
-
command: dockerize -wait tcp://localhost:9200 -timeout
|
|
28
|
+
name: Wait for search engine
|
|
29
|
+
command: dockerize -wait tcp://localhost:9200 -timeout 2m
|
|
24
30
|
- run:
|
|
25
31
|
name: Run test suite
|
|
26
32
|
command: bundle exec rake
|
|
@@ -32,3 +38,6 @@ workflows:
|
|
|
32
38
|
matrix:
|
|
33
39
|
parameters:
|
|
34
40
|
ruby_version: ["3.1"]
|
|
41
|
+
search_image:
|
|
42
|
+
- "docker.elastic.co/elasticsearch/elasticsearch:7.17.18"
|
|
43
|
+
- "opensearchproject/opensearch:3.3.0"
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### v7.0.3
|
|
4
|
+
|
|
5
|
+
* [#51](https://github.com/artsy/estella/pull/51): fix: pin elasticsearch client below 7.14 for OpenSearch compatibility, fix test-only index settings applying in all environments, run CI against OpenSearch 2.x/3.x - [@egdbear]
|
|
6
|
+
|
|
7
|
+
### v7.0.2
|
|
8
|
+
|
|
9
|
+
* [#45](https://github.com/artsy/estella/pull/45): chore: switch to a non deprecated ngram filter name - [@ovasdi]
|
|
4
10
|
|
|
5
11
|
### v7.0.1
|
|
6
12
|
|
data/estella.gemspec
CHANGED
|
@@ -16,6 +16,8 @@ Gem::Specification.new do |gem|
|
|
|
16
16
|
|
|
17
17
|
gem.add_runtime_dependency 'activemodel'
|
|
18
18
|
gem.add_runtime_dependency 'activesupport'
|
|
19
|
+
# elasticsearch 7.14+ refuses to connect to non-Elastic servers (e.g. OpenSearch)
|
|
20
|
+
gem.add_runtime_dependency 'elasticsearch', '>= 7.0', '< 7.14'
|
|
19
21
|
gem.add_runtime_dependency 'elasticsearch-model', '~> 7.0'
|
|
20
22
|
|
|
21
23
|
gem.add_development_dependency 'activerecord'
|
data/lib/estella/analysis.rb
CHANGED
|
@@ -6,7 +6,7 @@ module Estella
|
|
|
6
6
|
extend ActiveSupport::Concern
|
|
7
7
|
|
|
8
8
|
FRONT_NGRAM_FILTER =
|
|
9
|
-
{ type: '
|
|
9
|
+
{ type: 'edge_ngram', min_gram: 2, max_gram: 15, side: 'front' }
|
|
10
10
|
|
|
11
11
|
DEFAULT_ANALYZER =
|
|
12
12
|
{ type: 'custom', tokenizer: 'standard_tokenizer', filter: %w[lowercase asciifolding] }
|
|
@@ -53,7 +53,7 @@ module Estella
|
|
|
53
53
|
|
|
54
54
|
FULLTEXT_ANALYSIS = DEFAULT_FIELDS.keys
|
|
55
55
|
|
|
56
|
-
DEFAULT_SETTINGS = if defined?
|
|
56
|
+
DEFAULT_SETTINGS = if defined?(Rails) && Rails.env == 'test'
|
|
57
57
|
# Ensure no sharding in test env in order to enforce deterministic scores.
|
|
58
58
|
{ analysis: DEFAULT_ANALYSIS, index: { number_of_shards: 1, number_of_replicas: 1 } }
|
|
59
59
|
else
|
data/lib/estella/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: estella
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.0.
|
|
4
|
+
version: 7.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anil Bawa-Cavia
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2026-06-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activemodel
|
|
@@ -39,6 +39,26 @@ dependencies:
|
|
|
39
39
|
- - ">="
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
41
|
version: '0'
|
|
42
|
+
- !ruby/object:Gem::Dependency
|
|
43
|
+
name: elasticsearch
|
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
|
45
|
+
requirements:
|
|
46
|
+
- - ">="
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: '7.0'
|
|
49
|
+
- - "<"
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: '7.14'
|
|
52
|
+
type: :runtime
|
|
53
|
+
prerelease: false
|
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
55
|
+
requirements:
|
|
56
|
+
- - ">="
|
|
57
|
+
- !ruby/object:Gem::Version
|
|
58
|
+
version: '7.0'
|
|
59
|
+
- - "<"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '7.14'
|
|
42
62
|
- !ruby/object:Gem::Dependency
|
|
43
63
|
name: elasticsearch-model
|
|
44
64
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -159,6 +179,7 @@ extensions: []
|
|
|
159
179
|
extra_rdoc_files: []
|
|
160
180
|
files:
|
|
161
181
|
- ".circleci/config.yml"
|
|
182
|
+
- ".github/workflows/run-conventional-commits-check.yml"
|
|
162
183
|
- ".gitignore"
|
|
163
184
|
- ".rspec"
|
|
164
185
|
- ".rubocop.yml"
|
|
@@ -200,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
200
221
|
- !ruby/object:Gem::Version
|
|
201
222
|
version: '0'
|
|
202
223
|
requirements: []
|
|
203
|
-
rubygems_version: 3.
|
|
224
|
+
rubygems_version: 3.3.7
|
|
204
225
|
signing_key:
|
|
205
226
|
specification_version: 4
|
|
206
227
|
summary: Make your Ruby objects searchable with Elasticsearch.
|