elastic-enterprise-search 8.3.0 → 8.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ci/Dockerfile +14 -1
- data/.ci/jobs/elastic+enterprise-search-ruby+8.3.yml +12 -0
- data/.ci/make.sh +3 -1
- data/.ci/test-matrix.yml +1 -1
- data/README.md +1 -1
- data/docs/guide/app-search-api.asciidoc +4 -3
- data/docs/guide/installation.asciidoc +2 -2
- data/docs/guide/overview.asciidoc +2 -2
- data/docs/guide/release_notes/83.asciidoc +14 -0
- data/docs/guide/release_notes/84.asciidoc +36 -0
- data/docs/guide/release_notes/index.asciidoc +4 -0
- data/lib/elastic/app-search/api/adaptive_relevance_settings.rb +0 -1
- data/lib/elastic/app-search/api/adaptive_relevance_suggestions.rb +0 -1
- 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_active_crawl_request.rb +0 -1
- data/lib/elastic/app-search/api/crawler_crawl_request.rb +0 -1
- data/lib/elastic/app-search/api/crawler_crawl_schedule.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_metrics.rb +0 -1
- data/lib/elastic/app-search/api/crawler_overview.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 +0 -1
- 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/crawler_user_agent.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 +0 -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 +0 -1
- 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_active_crawl_request.rb +0 -1
- data/lib/elastic/app-search/api/delete_crawler_crawl_rule.rb +0 -1
- data/lib/elastic/app-search/api/delete_crawler_crawl_schedule.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_engine.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/engine.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 +0 -1
- data/lib/elastic/app-search/api/list_api_keys.rb +0 -1
- data/lib/elastic/app-search/api/list_crawler_crawl_requests.rb +0 -1
- data/lib/elastic/app-search/api/list_crawler_domains.rb +0 -1
- data/lib/elastic/app-search/api/list_crawler_process_crawls.rb +0 -1
- data/lib/elastic/app-search/api/list_curations.rb +0 -1
- data/lib/elastic/app-search/api/list_documents.rb +0 -1
- data/lib/elastic/app-search/api/list_engines.rb +0 -1
- data/lib/elastic/app-search/api/list_synonym_sets.rb +0 -1
- data/lib/elastic/app-search/api/log_clickthrough.rb +0 -1
- data/lib/elastic/app-search/api/multi_search.rb +0 -1
- data/lib/elastic/app-search/api/put_adaptive_relevance_settings.rb +0 -1
- 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 +0 -1
- 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/reset_search_settings.rb +0 -1
- data/lib/elastic/app-search/api/schema.rb +0 -1
- data/lib/elastic/app-search/api/search.rb +0 -1
- data/lib/elastic/app-search/api/search_es_search.rb +3 -5
- data/lib/elastic/app-search/api/search_explain.rb +0 -1
- data/lib/elastic/app-search/api/search_settings.rb +0 -1
- 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/health.rb +0 -1
- data/lib/elastic/enterprise-search/api/put_read_only.rb +0 -1
- data/lib/elastic/enterprise-search/api/read_only.rb +0 -1
- data/lib/elastic/enterprise-search/api/search_engines.rb +0 -1
- data/lib/elastic/enterprise-search/api/stats.rb +0 -1
- data/lib/elastic/enterprise-search/api/version.rb +0 -1
- data/lib/elastic/enterprise-search/request.rb +1 -1
- data/lib/elastic/enterprise-search/version.rb +1 -1
- data/lib/elastic/workplace-search/api/auto_query_refinement_details.rb +0 -1
- data/lib/elastic/workplace-search/api/command_sync_jobs.rb +0 -1
- data/lib/elastic/workplace-search/api/content_source.rb +0 -1
- data/lib/elastic/workplace-search/api/create_analytics_event.rb +0 -1
- data/lib/elastic/workplace-search/api/create_batch_synonym_sets.rb +0 -1
- data/lib/elastic/workplace-search/api/create_content_source.rb +0 -1
- data/lib/elastic/workplace-search/api/create_external_identity.rb +0 -1
- data/lib/elastic/workplace-search/api/current_user.rb +0 -1
- data/lib/elastic/workplace-search/api/delete_content_source.rb +0 -1
- data/lib/elastic/workplace-search/api/delete_documents.rb +0 -1
- data/lib/elastic/workplace-search/api/delete_documents_by_query.rb +0 -1
- data/lib/elastic/workplace-search/api/delete_external_identity.rb +0 -1
- data/lib/elastic/workplace-search/api/delete_synonym_set.rb +0 -1
- data/lib/elastic/workplace-search/api/document.rb +0 -1
- data/lib/elastic/workplace-search/api/external_identity.rb +0 -1
- data/lib/elastic/workplace-search/api/index_documents.rb +0 -1
- data/lib/elastic/workplace-search/api/list_content_sources.rb +0 -1
- data/lib/elastic/workplace-search/api/list_documents.rb +0 -1
- data/lib/elastic/workplace-search/api/list_external_identities.rb +0 -1
- data/lib/elastic/workplace-search/api/list_synonym_sets.rb +0 -1
- data/lib/elastic/workplace-search/api/put_content_source.rb +0 -1
- data/lib/elastic/workplace-search/api/put_content_source_icons.rb +0 -1
- data/lib/elastic/workplace-search/api/put_external_identity.rb +0 -1
- data/lib/elastic/workplace-search/api/put_synonym_set.rb +0 -1
- data/lib/elastic/workplace-search/api/put_triggers_blocklist.rb +0 -1
- data/lib/elastic/workplace-search/api/search.rb +0 -1
- data/lib/elastic/workplace-search/api/synonym_set.rb +0 -1
- data/lib/elastic/workplace-search/api/triggers_blocklist.rb +0 -1
- data/rake_tasks/unified_release_tasks.rake +21 -0
- data/spec/fixtures/vcr/workplace_search/create_analytics_event.yml +1 -1
- data/spec/fixtures/vcr/workplace_search/oauth_request_token.yml +1 -1
- data/spec/fixtures/vcr/workplace_search/search_request.yml +1 -1
- data/spec/integration/app-search/elasticsearch_search_spec.rb +17 -3
- metadata +5 -2
@@ -20,7 +20,6 @@
|
|
20
20
|
module Elastic
|
21
21
|
module EnterpriseSearch
|
22
22
|
module WorkplaceSearch
|
23
|
-
# Generated from build hash 835a1a87f357f7b7cfd3453b5c5a937c47995772
|
24
23
|
module Actions
|
25
24
|
# Search - Search across available sources with various query tuning options
|
26
25
|
# Issue a Search Query
|
@@ -17,6 +17,7 @@
|
|
17
17
|
|
18
18
|
# frozen_string_literal: true
|
19
19
|
|
20
|
+
# rubocop:disable Metrics/BlockLength
|
20
21
|
namespace :unified_release do
|
21
22
|
desc <<-DESC
|
22
23
|
Update Rubygems versions in version.rb and *.gemspec files
|
@@ -43,4 +44,24 @@ namespace :unified_release do
|
|
43
44
|
rescue StandardError => e
|
44
45
|
abort "[!!!] #{e.class} : #{e.message}"
|
45
46
|
end
|
47
|
+
|
48
|
+
desc 'Update Stack Versions in test matrices (.github/workflows and .ci/test-matrix.yml)'
|
49
|
+
task :update_matrices, :version do |_, args|
|
50
|
+
@version = args[:version]
|
51
|
+
error = 'Error: version must be passed in and needs to be a version format: 9.1.0, 8.7.15.'
|
52
|
+
raise ArgumentError, error unless @version&.match?(/[0-9.]/)
|
53
|
+
|
54
|
+
# Replace in test-matrix.yml
|
55
|
+
file = File.expand_path('./.ci/test-matrix.yml')
|
56
|
+
regex = /(STACK_VERSION:\s+- )([0-9.]+(-SNAPSHOT)?)/
|
57
|
+
replace_version(regex, file)
|
58
|
+
end
|
59
|
+
|
60
|
+
def replace_version(regex, file)
|
61
|
+
content = File.read(file)
|
62
|
+
match = content.match(regex)
|
63
|
+
content = content.gsub(regex, "#{match[1]}#{@version}")
|
64
|
+
File.open(file, 'w') { |f| f.puts content }
|
65
|
+
end
|
46
66
|
end
|
67
|
+
# rubocop:enable Metrics/BlockLength
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
X-Elastic-Client-Meta:
|
11
11
|
- es=7.11.0.pre.1,rb=2.7.2,t=7.11.0.pre.1,fd=1.3.0,nh=1.1
|
12
12
|
User-Agent:
|
13
|
-
- 'elastic-
|
13
|
+
- 'elastic-enterprise-search-ruby/7.11.0.pre (RUBY_VERSION: 2.7.2; linux x86_64;
|
14
14
|
elasticsearch-transport: 7.11.0.pre.1)'
|
15
15
|
Content-Type:
|
16
16
|
- application/json
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
X-Elastic-Client-Meta:
|
11
11
|
- es=7.11.0.pre.1,rb=2.7.2,t=7.11.0.pre.1,fd=1.3.0,nh=1.1
|
12
12
|
User-Agent:
|
13
|
-
- 'elastic-
|
13
|
+
- 'elastic-enterprise-search-ruby/7.11.0.pre (RUBY_VERSION: 2.7.2; linux x86_64;
|
14
14
|
elasticsearch-transport: 7.11.0.pre.1)'
|
15
15
|
Content-Type:
|
16
16
|
- application/json
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
X-Elastic-Client-Meta:
|
11
11
|
- es=7.11.0.pre.1,rb=2.7.2,t=7.11.0.pre.1,fd=1.3.0,nh=1.1
|
12
12
|
User-Agent:
|
13
|
-
- 'elastic-
|
13
|
+
- 'elastic-enterprise-search-ruby/7.11.0.pre (RUBY_VERSION: 2.7.2; linux x86_64;
|
14
14
|
elasticsearch-transport: 7.11.0.pre.1)'
|
15
15
|
Content-Type:
|
16
16
|
- application/json
|
@@ -51,12 +51,26 @@ describe Elastic::EnterpriseSearch::AppSearch::Client do
|
|
51
51
|
end
|
52
52
|
|
53
53
|
it 'performs an ES search' do
|
54
|
-
es_request = {
|
55
|
-
response = client.search_es_search(engine_name, body:
|
54
|
+
es_request = { query: { bool: { must: { term: { author: 'panciroli' } } } } }
|
55
|
+
response = client.search_es_search(engine_name, body: es_request)
|
56
56
|
expect(response.status).to eq 200
|
57
57
|
expect(response.body['hits']['hits'].count).to eq 2
|
58
58
|
expect do
|
59
|
-
response.body['hits']['hits'].map
|
59
|
+
response.body['hits']['hits'].map do |a|
|
60
|
+
a['_source']['author']
|
61
|
+
end == ['Elsa Panciroli', 'Dr. Elsa Panciroli']
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
it 'performs an ES search with query parameters' do
|
66
|
+
es_request = { query: { bool: { must: { term: { author: 'panciroli' } } } } }
|
67
|
+
response = client.search_es_search(engine_name, body: es_request, sort: "{ 'author': 'desc' }")
|
68
|
+
expect(response.status).to eq 200
|
69
|
+
expect(response.body['hits']['hits'].count).to eq 2
|
70
|
+
expect do
|
71
|
+
response.body['hits']['hits'].map do |a|
|
72
|
+
a['_source']['author']
|
73
|
+
end == ['Dr. Elsa Panciroli', 'Elsa Panciroli']
|
60
74
|
end
|
61
75
|
end
|
62
76
|
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.4.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-
|
11
|
+
date: 2022-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: elastic-transport
|
@@ -168,6 +168,7 @@ files:
|
|
168
168
|
- ".ci/jobs/elastic+enterprise-search-ruby+8.0.yml"
|
169
169
|
- ".ci/jobs/elastic+enterprise-search-ruby+8.1.yml"
|
170
170
|
- ".ci/jobs/elastic+enterprise-search-ruby+8.2.yml"
|
171
|
+
- ".ci/jobs/elastic+enterprise-search-ruby+8.3.yml"
|
171
172
|
- ".ci/jobs/elastic+enterprise-search-ruby+main.yml"
|
172
173
|
- ".ci/jobs/elastic+enterprise-search-ruby+pull-request.yml"
|
173
174
|
- ".ci/make.sh"
|
@@ -210,6 +211,8 @@ files:
|
|
210
211
|
- docs/guide/release_notes/80.asciidoc
|
211
212
|
- docs/guide/release_notes/81.asciidoc
|
212
213
|
- docs/guide/release_notes/82.asciidoc
|
214
|
+
- docs/guide/release_notes/83.asciidoc
|
215
|
+
- docs/guide/release_notes/84.asciidoc
|
213
216
|
- docs/guide/release_notes/index.asciidoc
|
214
217
|
- docs/guide/workplace-search-api.asciidoc
|
215
218
|
- elastic-enterprise-search.gemspec
|