elastic-enterprise-search 8.0.0.pre → 8.2.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 +4 -4
- data/.ci/jobs/{elastic+enterprise-search-ruby+7.13.yml → elastic+enterprise-search-ruby+7.17.yml} +4 -4
- data/.ci/jobs/{elastic+enterprise-search-ruby+7.14.yml → elastic+enterprise-search-ruby+8.0.yml} +4 -4
- data/.ci/run-enterprise-search.sh +1 -0
- data/.ci/test-matrix.yml +1 -1
- data/.github/workflows/testing.yml +1 -2
- data/docs/guide/app-search-api.asciidoc +58 -9
- data/docs/guide/release_notes/714.asciidoc +12 -0
- data/docs/guide/release_notes/715.asciidoc +12 -0
- data/docs/guide/release_notes/80.asciidoc +108 -5
- data/docs/guide/release_notes/81.asciidoc +8 -0
- data/docs/guide/release_notes/82.asciidoc +31 -0
- data/docs/guide/release_notes/index.asciidoc +5 -3
- data/docs/guide/workplace-search-api.asciidoc +17 -7
- data/elastic-enterprise-search.gemspec +1 -1
- data/lib/elastic/app-search/api/adaptive_relevance_suggestions.rb +1 -2
- data/lib/elastic/app-search/api/add_meta_engine_source.rb +0 -1
- data/lib/elastic/app-search/api/api_key.rb +0 -1
- data/lib/elastic/app-search/api/api_logs.rb +0 -1
- data/lib/elastic/app-search/api/count_analytics.rb +0 -1
- data/lib/elastic/app-search/api/crawler_crawl_request.rb +0 -1
- data/lib/elastic/app-search/api/crawler_domain.rb +0 -1
- data/lib/elastic/app-search/api/crawler_domain_validation_result.rb +0 -1
- data/lib/elastic/app-search/api/crawler_process_crawl.rb +0 -1
- data/lib/elastic/app-search/api/crawler_process_crawl_denied_urls.rb +0 -1
- data/lib/elastic/app-search/api/crawler_url_extraction_result.rb +1 -2
- data/lib/elastic/app-search/api/crawler_url_tracing_result.rb +0 -1
- data/lib/elastic/app-search/api/crawler_url_validation_result.rb +0 -1
- data/lib/elastic/app-search/api/create_api_key.rb +0 -1
- data/lib/elastic/app-search/api/create_crawler_crawl_request.rb +1 -1
- data/lib/elastic/app-search/api/create_crawler_crawl_rule.rb +0 -1
- data/lib/elastic/app-search/api/create_crawler_domain.rb +0 -1
- data/lib/elastic/app-search/api/create_crawler_entry_point.rb +0 -1
- data/lib/elastic/app-search/api/create_crawler_process_crawl.rb +0 -1
- data/lib/elastic/app-search/api/create_crawler_sitemap.rb +0 -1
- data/lib/elastic/app-search/api/create_curation.rb +1 -2
- data/lib/elastic/app-search/api/create_engine.rb +0 -1
- data/lib/elastic/app-search/api/create_synonym_set.rb +0 -1
- data/lib/elastic/app-search/api/curation.rb +0 -1
- data/lib/elastic/app-search/api/delete_api_key.rb +0 -1
- data/lib/elastic/app-search/api/delete_crawler_crawl_rule.rb +0 -1
- data/lib/elastic/app-search/api/delete_crawler_domain.rb +0 -1
- data/lib/elastic/app-search/api/delete_crawler_entry_point.rb +0 -1
- data/lib/elastic/app-search/api/delete_crawler_sitemap.rb +0 -1
- data/lib/elastic/app-search/api/delete_curation.rb +0 -1
- data/lib/elastic/app-search/api/delete_documents.rb +0 -1
- data/lib/elastic/app-search/api/delete_meta_engine_source.rb +0 -1
- data/lib/elastic/app-search/api/delete_synonym_set.rb +0 -1
- data/lib/elastic/app-search/api/documents.rb +0 -1
- data/lib/elastic/app-search/api/index_documents.rb +0 -1
- data/lib/elastic/app-search/api/list_adaptive_relevance_suggestions.rb +1 -2
- data/lib/elastic/app-search/api/log_clickthrough.rb +0 -1
- data/lib/elastic/app-search/api/put_adaptive_relevance_settings.rb +1 -2
- data/lib/elastic/app-search/api/put_adaptive_relevance_suggestions.rb +0 -1
- data/lib/elastic/app-search/api/put_api_key.rb +0 -1
- data/lib/elastic/app-search/api/put_crawler_crawl_rule.rb +0 -1
- data/lib/elastic/app-search/api/put_crawler_crawl_schedule.rb +0 -1
- data/lib/elastic/app-search/api/put_crawler_domain.rb +0 -1
- data/lib/elastic/app-search/api/put_crawler_entry_point.rb +0 -1
- data/lib/elastic/app-search/api/put_crawler_sitemap.rb +0 -1
- data/lib/elastic/app-search/api/put_curation.rb +1 -2
- data/lib/elastic/app-search/api/put_documents.rb +0 -1
- data/lib/elastic/app-search/api/put_schema.rb +0 -1
- data/lib/elastic/app-search/api/put_search_settings.rb +0 -1
- data/lib/elastic/app-search/api/put_synonym_set.rb +0 -1
- data/lib/elastic/app-search/api/query_suggestion.rb +0 -1
- data/lib/elastic/app-search/api/refresh_adaptive_relevance_update_process.rb +0 -1
- data/lib/elastic/app-search/api/search.rb +0 -1
- data/lib/elastic/app-search/api/search_es_search.rb +53 -0
- data/lib/elastic/app-search/api/search_explain.rb +61 -0
- data/lib/elastic/app-search/api/synonym_set.rb +0 -1
- data/lib/elastic/app-search/api/top_clicks_analytics.rb +0 -1
- data/lib/elastic/app-search/api/top_queries_analytics.rb +0 -1
- data/lib/elastic/enterprise-search/api/put_read_only.rb +0 -1
- data/lib/elastic/enterprise-search/api/version.rb +1 -1
- data/lib/elastic/enterprise-search/version.rb +1 -1
- data/spec/integration/app-search/elasticsearch_search_spec.rb +63 -0
- data/spec/integration/app-search/explain_search_spec.rb +59 -0
- metadata +14 -10
- data/.ci/jobs/elastic+enterprise-search-ruby+7.15.yml +0 -12
- data/.ci/jobs/elastic+enterprise-search-ruby+7.16.yml +0 -12
@@ -0,0 +1,59 @@
|
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
17
|
+
|
18
|
+
# frozen_string_literal: true
|
19
|
+
|
20
|
+
require_relative "#{__dir__}/app_search_helper.rb"
|
21
|
+
|
22
|
+
describe Elastic::EnterpriseSearch::AppSearch::Client do
|
23
|
+
context 'Elasticsearch Search' do
|
24
|
+
let(:engine_name) { 'app-search-explain' }
|
25
|
+
let(:documents) do
|
26
|
+
[
|
27
|
+
{ title: 'Beasts Before Us', author: 'Elsa Panciroli' },
|
28
|
+
{ title: 'The Rise and Fall of the Dinosaurs', author: 'Steve Brusatte' },
|
29
|
+
{ title: 'Raptor Red', author: 'Robert T. Bakker' },
|
30
|
+
{ title: 'The Earth: A biography of life', author: 'Dr. Elsa Panciroli' }
|
31
|
+
]
|
32
|
+
end
|
33
|
+
let(:api_key_name) { 'my-api-key' }
|
34
|
+
|
35
|
+
before do
|
36
|
+
# Use API Key in client, save a backup to restore original auth:
|
37
|
+
@old_client = @client.dup
|
38
|
+
api_key_body = { name: api_key_name, type: 'private', read: true, write: true, access_all_engines: true }
|
39
|
+
response = client.create_api_key(body: api_key_body)
|
40
|
+
@client.http_auth = response.body['key']
|
41
|
+
create_engine(engine_name)
|
42
|
+
client.index_documents(engine_name, documents: documents)
|
43
|
+
sleep 1
|
44
|
+
end
|
45
|
+
|
46
|
+
after do
|
47
|
+
# Restore original client:
|
48
|
+
@client = @old_client
|
49
|
+
delete_engines
|
50
|
+
client.delete_api_key(api_key_name: api_key_name)
|
51
|
+
end
|
52
|
+
|
53
|
+
it 'explains a Search query' do
|
54
|
+
response = client.search_explain(engine_name, body: { query: 'Raptor Red' })
|
55
|
+
expect(response.status).to eq 200
|
56
|
+
expect(response.body['query_string']).to eq 'GET enterprise-search-engine-app-search-explain/_search'
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elastic-enterprise-search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fernando Briano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: elastic-transport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 8.0.0.pre.
|
19
|
+
version: 8.0.0.pre.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 8.0.0.pre.
|
26
|
+
version: 8.0.0.pre.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jwt
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,10 +164,8 @@ files:
|
|
164
164
|
- ".ci/functions/imports.sh"
|
165
165
|
- ".ci/functions/wait-for-container.sh"
|
166
166
|
- ".ci/jobs/defaults.yml"
|
167
|
-
- ".ci/jobs/elastic+enterprise-search-ruby+7.
|
168
|
-
- ".ci/jobs/elastic+enterprise-search-ruby+
|
169
|
-
- ".ci/jobs/elastic+enterprise-search-ruby+7.15.yml"
|
170
|
-
- ".ci/jobs/elastic+enterprise-search-ruby+7.16.yml"
|
167
|
+
- ".ci/jobs/elastic+enterprise-search-ruby+7.17.yml"
|
168
|
+
- ".ci/jobs/elastic+enterprise-search-ruby+8.0.yml"
|
171
169
|
- ".ci/jobs/elastic+enterprise-search-ruby+main.yml"
|
172
170
|
- ".ci/jobs/elastic+enterprise-search-ruby+pull-request.yml"
|
173
171
|
- ".ci/make.sh"
|
@@ -208,6 +206,8 @@ files:
|
|
208
206
|
- docs/guide/release_notes/716.asciidoc
|
209
207
|
- docs/guide/release_notes/717.asciidoc
|
210
208
|
- docs/guide/release_notes/80.asciidoc
|
209
|
+
- docs/guide/release_notes/81.asciidoc
|
210
|
+
- docs/guide/release_notes/82.asciidoc
|
211
211
|
- docs/guide/release_notes/index.asciidoc
|
212
212
|
- docs/guide/workplace-search-api.asciidoc
|
213
213
|
- elastic-enterprise-search.gemspec
|
@@ -291,6 +291,8 @@ files:
|
|
291
291
|
- lib/elastic/app-search/api/reset_search_settings.rb
|
292
292
|
- lib/elastic/app-search/api/schema.rb
|
293
293
|
- lib/elastic/app-search/api/search.rb
|
294
|
+
- lib/elastic/app-search/api/search_es_search.rb
|
295
|
+
- lib/elastic/app-search/api/search_explain.rb
|
294
296
|
- lib/elastic/app-search/api/search_settings.rb
|
295
297
|
- lib/elastic/app-search/api/synonym_set.rb
|
296
298
|
- lib/elastic/app-search/api/top_clicks_analytics.rb
|
@@ -367,7 +369,9 @@ files:
|
|
367
369
|
- spec/integration/app-search/crawler_user_agent_spec.rb
|
368
370
|
- spec/integration/app-search/curations_spec.rb
|
369
371
|
- spec/integration/app-search/documents_spec.rb
|
372
|
+
- spec/integration/app-search/elasticsearch_search_spec.rb
|
370
373
|
- spec/integration/app-search/engines_spec.rb
|
374
|
+
- spec/integration/app-search/explain_search_spec.rb
|
371
375
|
- spec/integration/app-search/log_clickthrough_spec.rb
|
372
376
|
- spec/integration/app-search/meta_engines_spec.rb
|
373
377
|
- spec/integration/app-search/query_suggestion_spec.rb
|
@@ -411,9 +415,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
411
415
|
version: '2.6'
|
412
416
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
413
417
|
requirements:
|
414
|
-
- - "
|
418
|
+
- - ">="
|
415
419
|
- !ruby/object:Gem::Version
|
416
|
-
version:
|
420
|
+
version: '0'
|
417
421
|
requirements: []
|
418
422
|
rubygems_version: 3.3.3
|
419
423
|
signing_key:
|
@@ -1,12 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- job:
|
3
|
-
name: elastic+enterprise-search-ruby+7.15
|
4
|
-
display-name: 'elastic / enterprise-search-ruby # 7.15'
|
5
|
-
description: Testing the enterprise-search-ruby 7.15 branch.
|
6
|
-
junit_results: "*-junit.xml"
|
7
|
-
parameters:
|
8
|
-
- string:
|
9
|
-
name: branch_specifier
|
10
|
-
default: refs/heads/7.15
|
11
|
-
description: the Git branch specifier to build (<branchName>, <tagName>,
|
12
|
-
<commitId>, etc.)
|
@@ -1,12 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- job:
|
3
|
-
name: elastic+enterprise-search-ruby+7.16
|
4
|
-
display-name: 'elastic / enterprise-search-ruby # 7.16'
|
5
|
-
description: Testing the enterprise-search-ruby 7.16 branch.
|
6
|
-
junit_results: "*-junit.xml"
|
7
|
-
parameters:
|
8
|
-
- string:
|
9
|
-
name: branch_specifier
|
10
|
-
default: refs/heads/7.16
|
11
|
-
description: the Git branch specifier to build (<branchName>, <tagName>,
|
12
|
-
<commitId>, etc.)
|