elastic-enterprise-search 8.9.0 → 8.18.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba689b3ef05d303a636db6f9757b184c41de8232a625a9914dc521ae36ef10fe
4
- data.tar.gz: 6b7bf74a47ce28ef549c77eb6f403cd9932f1001a6f82855230e407ddfc7e73b
3
+ metadata.gz: e1edee1a341d229766cc56217bdc48daba826c38285fac78da19f98c4499f007
4
+ data.tar.gz: e59f9320edc8874b05b7a42888bc6c8817c4192a9f266bdf5584674c686cb518
5
5
  SHA512:
6
- metadata.gz: ead1921648fc89eaa32ecbb5fff41509779df7377afddc8bfc8b96c9bdfd418eb4f3d8d854d6a6ca082933be830185404efe31548f074cf94de87b722451758e
7
- data.tar.gz: b9865952c106e33d61add399ea50fe84818ba6baa84aa4084b7a61c2ff9f9cc047bea86a86783d11608493a7a8b33bdf0d20f0d81d699ce04d535385af6b88d8
6
+ metadata.gz: d1a70bed65232c5281f1439cfa460cdbd8c10414c73e522e0570d5a900916b4c3685b578256cbb0929b1f2aae574a14e23815b994918f37eba72ede0030c1639
7
+ data.tar.gz: e82c1ce74df9f238b3a978291bdf8736d73fc71fa20c028bba039d33b75b01e4c36db676e8d2a5c9177e3e2c0e2f8fe3e73c6b4a72533e0d9c21d49ff4e2f101
@@ -4,13 +4,14 @@ steps:
4
4
  provider: "gcp"
5
5
  env:
6
6
  RUBY_VERSION: "{{ matrix.ruby }}"
7
- STACK_VERSION: 8.9-SNAPSHOT
7
+ STACK_VERSION: 8.18.0-SNAPSHOT
8
8
  matrix:
9
9
  setup:
10
10
  ruby:
11
+ - "3.4"
12
+ - "3.3"
11
13
  - "3.2"
12
14
  - "3.1"
13
- - "3.0"
14
15
  command: ./.buildkite/run-tests.sh
15
16
  artifact_paths: "tmp/*"
16
17
  - wait: ~
data/.ci/make.sh CHANGED
@@ -55,15 +55,6 @@ case $CMD in
55
55
  echo -e "\033[32;1mdone.\033[0m"
56
56
  exit 0
57
57
  ;;
58
- assemble)
59
- if [ -v $VERSION ]; then
60
- echo -e "\033[31;1mTARGET: assemble -> missing version parameter\033[0m"
61
- exit 1
62
- fi
63
- echo -e "\033[36;1mTARGET: assemble artefact $VERSION\033[0m"
64
- TASK=assemble
65
- TASK_ARGS=("$VERSION" "$output_folder")
66
- ;;
67
58
  codegen)
68
59
  if [ -v $VERSION ]; then
69
60
  echo -e "\033[31;1mTARGET: codegen -> missing version parameter\033[0m"
@@ -112,11 +103,7 @@ esac
112
103
 
113
104
  echo -e "\033[34;1mINFO: building $product container\033[0m"
114
105
 
115
- docker build --file .ci/Dockerfile --tag ${product} \
116
- --build-arg BUILDER_UID="$(id -u)" \
117
- --build-arg USER_ID="$(id -u)" \
118
- --build-arg GROUP_ID="$(id -g)" .
119
-
106
+ docker build --file .buildkite/Dockerfile --tag ${product}
120
107
 
121
108
  # ------------------------------------------------------- #
122
109
  # Run the Container
@@ -142,15 +129,6 @@ docker run \
142
129
  # Post Command tasks & checks
143
130
  # ------------------------------------------------------- #
144
131
 
145
- if [[ "$CMD" == "assemble" ]]; then
146
- if compgen -G ".ci/output/*" > /dev/null; then
147
- echo -e "\033[32;1mTARGET: successfully assembled client v$VERSION\033[0m"
148
- else
149
- echo -e "\033[31;1mTARGET: assemble failed, empty workspace!\033[0m"
150
- exit 1
151
- fi
152
- fi
153
-
154
132
  if [[ "$CMD" == "codegen" ]]; then
155
133
  echo "TODO"
156
134
  fi
@@ -4,10 +4,10 @@ jobs:
4
4
  build:
5
5
  runs-on: ubuntu-latest
6
6
  steps:
7
- - uses: actions/checkout@v2
7
+ - uses: actions/checkout@v4
8
8
  - uses: ruby/setup-ruby@v1
9
9
  with:
10
- ruby-version: 3
10
+ ruby-version: '3.4'
11
11
  - name: Check license headers
12
12
  run: |
13
13
  ruby ./.github/check_license_headers.rb
@@ -5,10 +5,10 @@ jobs:
5
5
  rubocop:
6
6
  runs-on: ubuntu-latest
7
7
  steps:
8
- - uses: actions/checkout@v2
8
+ - uses: actions/checkout@v4
9
9
  - uses: ruby/setup-ruby@v1
10
10
  with:
11
- ruby-version: 2.7
11
+ ruby-version: 3
12
12
  - name: Run Rubocop
13
13
  run: |
14
14
  gem install rubocop
@@ -1,3 +1,4 @@
1
+ ---
1
2
  name: main
2
3
  on: [push, pull_request]
3
4
 
@@ -7,10 +8,10 @@ jobs:
7
8
  ENDPOINT: http://localhost:8080
8
9
  strategy:
9
10
  matrix:
10
- ruby: [ '3.0', '3.1', '3.2' ]
11
+ ruby: ['3.1', '3.2', '3.3', '3.4']
11
12
  runs-on: ubuntu-latest
12
13
  steps:
13
- - uses: actions/checkout@v2
14
+ - uses: actions/checkout@v4
14
15
  - uses: ruby/setup-ruby@v1
15
16
  with:
16
17
  ruby-version: ${{ matrix.ruby }}
@@ -27,10 +28,10 @@ jobs:
27
28
  strategy:
28
29
  fail-fast: false
29
30
  matrix:
30
- ruby: [ jruby-9.3, jruby-9.4 ]
31
+ ruby: ['jruby-9.3', 'jruby-9.4']
31
32
  runs-on: ubuntu-latest
32
33
  steps:
33
- - uses: actions/checkout@v2
34
+ - uses: actions/checkout@v4
34
35
  - uses: ruby/setup-ruby@v1
35
36
  with:
36
37
  ruby-version: ${{ matrix.ruby }}
data/README.md CHANGED
@@ -5,6 +5,16 @@
5
5
  ![build](https://github.com/elastic/enterprise-search-ruby/workflows/main/badge.svg)
6
6
  [![Build status](https://badge.buildkite.com/a6c44f2af741c866381fb3c845e8d4b0e9b5c5883ef84ac30e.svg)](https://buildkite.com/elastic/enterprise-search-ruby)
7
7
 
8
+ > [!WARNING] **Enterprise Search will be discontinued in 9.0.**
9
+
10
+ > Starting with Elastic version 9.0, the standalone Enterprise Search products, will no longer be included in our offering. They remain supported in their current form in version 8.x and will only receive security upgrades and fixes. Enterprise Search clients will continue to be supported in their current form throughout 8.x versions, according to our EOL policy: https://www.elastic.co/support/eol
11
+ > We recommend transitioning to our actively developed Elastic Stack (https://www.elastic.co/elastic-stack) tools for your search use cases. However, if you're still using any Enterprise Search products, we recommend using the latest stable release of the clients.
12
+
13
+ > Here are some useful links with more information:
14
+ > * Enterprise Search FAQ: https://www.elastic.co/resources/enterprise-search/enterprise-search-faq
15
+ > * Migrating to 9.x from Enterprise Search 8.x versions: https://www.elastic.co/guide/en/enterprise-search/current/upgrading-to-9-x.html
16
+
17
+
8
18
  Official Ruby API client for [Elastic Enterprise Search](https://www.elastic.co/enterprise-search). Use this gem to integrate App Search and Workplace Search into your Ruby code.
9
19
 
10
20
  ## Installation
data/catalog-info.yaml ADDED
@@ -0,0 +1,19 @@
1
+ apiVersion: backstage.io/v1alpha1
2
+ kind: Resource
3
+ metadata:
4
+ name: buildkite-pipeline-enterprise-search-ruby
5
+ spec:
6
+ implementation:
7
+ apiVersion: buildkite.elastic.dev/v1
8
+ kind: Pipeline
9
+ metadata:
10
+ description: Enterprise Search Ruby Client
11
+ name: enterprise-search-ruby
12
+ spec:
13
+ repository: elastic/enterprise-search-ruby
14
+ teams:
15
+ devtools-team: {}
16
+ everyone:
17
+ access_level: READ_ONLY
18
+ owner: group:devtools-team
19
+ type: buildkite-pipeline
@@ -35,7 +35,7 @@ client.create_engine(body: body)
35
35
  # Add a source engine to a meta engine:
36
36
  client.add_meta_engine_source(meta_engine_name, source_engines: ['engine1', 'engine2'])
37
37
 
38
- # Remove a source enginge from a meta engine:
38
+ # Remove a source engine from a meta engine:
39
39
  client.delete_meta_engine_source(meta_engine_name, source_engines: ['engine1', 'engine2'])
40
40
  ----------------------------
41
41
 
@@ -72,7 +72,9 @@ client.put_documents(engine_name, documents: [{id: document_id, key: value}])
72
72
  ----------------------------
73
73
  # Single Search
74
74
  query = {
75
- query: 'luigi'
75
+ body: {
76
+ query: 'luigi'
77
+ }
76
78
  }
77
79
 
78
80
  client.search(engine_name, query)
@@ -53,13 +53,26 @@ Gem::Specification.new do |s|
53
53
  s.add_development_dependency 'byebug' unless defined?(JRUBY_VERSION)
54
54
  s.add_development_dependency 'rspec', '~> 3.9.0'
55
55
  s.add_development_dependency 'rspec_junit_formatter'
56
- s.add_development_dependency 'rubocop', '~> 1'
56
+ s.add_development_dependency 'rubocop', '>= 1.51' unless defined?(JRUBY_VERSION) &&
57
+ Gem::Version.new(JRUBY_VERSION) < Gem::Version.new('9.4')
57
58
  s.add_development_dependency 'vcr'
58
- s.add_development_dependency 'webmock'
59
+ s.add_development_dependency 'webmock', '>= 3.23.1'
59
60
  # Adapters
60
61
  s.add_development_dependency 'faraday-httpclient'
61
62
  s.add_development_dependency 'faraday-net_http_persistent'
62
63
  s.add_development_dependency 'faraday-patron' unless defined? JRUBY_VERSION
63
64
  s.add_development_dependency 'faraday-typhoeus'
65
+
66
+ s.post_install_message = <<~MESSAGE
67
+
68
+ Warning: Starting with Elastic version 9.0, the standalone Enterprise Search products, will no longer be included in our offering. They remain supported in their current form in version 8.x and will only receive security upgrades and fixes.
69
+ Enterprise Search clients will continue to be supported in their current form throughout 8.x versions, according to our EOL policy: https://www.elastic.co/support/eol
70
+ We recommend transitioning to our actively developed Elastic Stack (https://www.elastic.co/elastic-stack) tools for your search use cases. However, if you're still using any Enterprise Search products, we recommend using the latest stable release of the clients.
71
+
72
+ Here are some useful links with more information:
73
+ * Enterprise Search FAQ: https://www.elastic.co/resources/enterprise-search/enterprise-search-faq
74
+ * Migrating to 9.x from Enterprise Search 8.x versions: https://www.elastic.co/guide/en/enterprise-search/current/upgrading-to-9-x.html
75
+
76
+ MESSAGE
64
77
  end
65
78
  # rubocop:enable Metrics/BlockLength
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Elastic
21
21
  module EnterpriseSearch
22
- VERSION = '8.9.0'
22
+ VERSION = '8.18.0'
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-enterprise-search
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.9.0
4
+ version: 8.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Briano
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-07-27 00:00:00.000000000 Z
10
+ date: 2025-04-15 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: elastic-transport
@@ -104,16 +103,16 @@ dependencies:
104
103
  name: rubocop
105
104
  requirement: !ruby/object:Gem::Requirement
106
105
  requirements:
107
- - - "~>"
106
+ - - ">="
108
107
  - !ruby/object:Gem::Version
109
- version: '1'
108
+ version: '1.51'
110
109
  type: :development
111
110
  prerelease: false
112
111
  version_requirements: !ruby/object:Gem::Requirement
113
112
  requirements:
114
- - - "~>"
113
+ - - ">="
115
114
  - !ruby/object:Gem::Version
116
- version: '1'
115
+ version: '1.51'
117
116
  - !ruby/object:Gem::Dependency
118
117
  name: vcr
119
118
  requirement: !ruby/object:Gem::Requirement
@@ -134,14 +133,14 @@ dependencies:
134
133
  requirements:
135
134
  - - ">="
136
135
  - !ruby/object:Gem::Version
137
- version: '0'
136
+ version: 3.23.1
138
137
  type: :development
139
138
  prerelease: false
140
139
  version_requirements: !ruby/object:Gem::Requirement
141
140
  requirements:
142
141
  - - ">="
143
142
  - !ruby/object:Gem::Version
144
- version: '0'
143
+ version: 3.23.1
145
144
  - !ruby/object:Gem::Dependency
146
145
  name: faraday-httpclient
147
146
  requirement: !ruby/object:Gem::Requirement
@@ -226,7 +225,6 @@ files:
226
225
  - ".buildkite/run-local.sh"
227
226
  - ".buildkite/run-tests.sh"
228
227
  - ".ci/.gitignore"
229
- - ".ci/Dockerfile"
230
228
  - ".ci/make.sh"
231
229
  - ".github/check_license_headers.rb"
232
230
  - ".github/license-header.txt"
@@ -243,6 +241,7 @@ files:
243
241
  - NOTICE
244
242
  - README.md
245
243
  - Rakefile
244
+ - catalog-info.yaml
246
245
  - docs/guide/app-search-api.asciidoc
247
246
  - docs/guide/connecting.asciidoc
248
247
  - docs/guide/development.asciidoc
@@ -465,7 +464,16 @@ metadata:
465
464
  homepage_uri: https://www.elastic.co/enterprise-search
466
465
  source_code_uri: https://github.com/elastic/enterprise-search-ruby
467
466
  changelog_uri: https://www.elastic.co/guide/en/enterprise-search-clients/ruby/current/release_notes.html
468
- post_install_message:
467
+ post_install_message: |2+
468
+
469
+ Warning: Starting with Elastic version 9.0, the standalone Enterprise Search products, will no longer be included in our offering. They remain supported in their current form in version 8.x and will only receive security upgrades and fixes.
470
+ Enterprise Search clients will continue to be supported in their current form throughout 8.x versions, according to our EOL policy: https://www.elastic.co/support/eol
471
+ We recommend transitioning to our actively developed Elastic Stack (https://www.elastic.co/elastic-stack) tools for your search use cases. However, if you're still using any Enterprise Search products, we recommend using the latest stable release of the clients.
472
+
473
+ Here are some useful links with more information:
474
+ * Enterprise Search FAQ: https://www.elastic.co/resources/enterprise-search/enterprise-search-faq
475
+ * Migrating to 9.x from Enterprise Search 8.x versions: https://www.elastic.co/guide/en/enterprise-search/current/upgrading-to-9-x.html
476
+
469
477
  rdoc_options: []
470
478
  require_paths:
471
479
  - lib
@@ -480,8 +488,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
480
488
  - !ruby/object:Gem::Version
481
489
  version: '0'
482
490
  requirements: []
483
- rubygems_version: 3.4.13
484
- signing_key:
491
+ rubygems_version: 3.6.2
485
492
  specification_version: 4
486
493
  summary: Official API client for Elastic Enterprise Search
487
494
  test_files: []
495
+ ...
data/.ci/Dockerfile DELETED
@@ -1,25 +0,0 @@
1
- ARG RUBY_VERSION=2.7
2
- FROM ruby:${RUBY_VERSION}
3
-
4
- # Default UID/GID to 1000
5
- # it can be overridden at build time
6
- ARG BUILDER_UID=1000
7
- ARG BUILDER_GID=1000
8
- ENV BUILDER_USER elastic
9
- ENV BUILDER_GROUP elastic
10
-
11
- ENV GEM_HOME="/usr/local/bundle"
12
- ENV PATH $GEM_HOME/bin:$GEM_HOME/gems/bin:$PATH
13
- ENV QUIET=true
14
- ENV CI=true
15
-
16
- # Create user
17
- RUN groupadd --system -g ${BUILDER_GID} ${BUILDER_GROUP} \
18
- && useradd --system --shell /bin/bash -u ${BUILDER_UID} -g ${BUILDER_GROUP} -d /var/lib/elastic -m elastic 1>/dev/null 2>/dev/null \
19
- && mkdir -p /code/enterprise-search-ruby && touch /Gemfile.lock \
20
- && chown -R ${BUILDER_USER}:${BUILDER_GROUP} /code/enterprise-search-ruby /Gemfile.lock
21
-
22
- WORKDIR /code/enterprise-search-ruby
23
-
24
- COPY --chown=$BUILDER_USER:$BUILDER_GROUP . .
25
- RUN bundle install