elastic-enterprise-search 8.3.0 → 8.5.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.0.yml → elastic+enterprise-search-ruby+8.3.yml} +4 -4
- data/.ci/jobs/{elastic+enterprise-search-ruby+8.1.yml → elastic+enterprise-search-ruby+8.4.yml} +4 -4
- data/.ci/make.sh +3 -1
- data/.ci/test-matrix.yml +1 -1
- data/.github/workflows/rubocop.yml +2 -2
- data/.github/workflows/testing.yml +2 -0
- 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/85.asciidoc +40 -0
- data/docs/guide/release_notes/index.asciidoc +6 -0
- data/elastic-enterprise-search.gemspec +6 -1
- 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 +1 -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 +5 -6
- data/lib/elastic/app-search/api/search_explain.rb +1 -2
- 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/app-search/client_spec.rb +1 -28
- data/spec/enterprise-search/client_spec.rb +1 -28
- 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
- data/spec/spec_helper.rb +34 -0
- data/spec/workplace-search/client_spec.rb +1 -28
- metadata +65 -6
@@ -20,7 +20,6 @@
|
|
20
20
|
module Elastic
|
21
21
|
module EnterpriseSearch
|
22
22
|
module AppSearch
|
23
|
-
# Generated from build hash 835a1a87f357f7b7cfd3453b5c5a937c47995772
|
24
23
|
module Actions
|
25
24
|
# Click - Tracks results that were clicked after a query
|
26
25
|
# Tracks results that were clicked after a query
|
@@ -20,7 +20,6 @@
|
|
20
20
|
module Elastic
|
21
21
|
module EnterpriseSearch
|
22
22
|
module AppSearch
|
23
|
-
# Generated from build hash 835a1a87f357f7b7cfd3453b5c5a937c47995772
|
24
23
|
module Actions
|
25
24
|
# MultiSearch - Submit a multi search
|
26
25
|
# Submit a multi search query and receive a set of results with meta data
|
@@ -20,7 +20,6 @@
|
|
20
20
|
module Elastic
|
21
21
|
module EnterpriseSearch
|
22
22
|
module AppSearch
|
23
|
-
# Generated from build hash 835a1a87f357f7b7cfd3453b5c5a937c47995772
|
24
23
|
module Actions
|
25
24
|
# AdaptiveRelevanceSettings - Update adaptive relevance settings
|
26
25
|
# Update adaptive relevance settings
|
@@ -20,7 +20,6 @@
|
|
20
20
|
module Elastic
|
21
21
|
module EnterpriseSearch
|
22
22
|
module AppSearch
|
23
|
-
# Generated from build hash 835a1a87f357f7b7cfd3453b5c5a937c47995772
|
24
23
|
module Actions
|
25
24
|
# Synonyms - Update search settings
|
26
25
|
# Updates search settings for the engine
|
@@ -32,6 +31,7 @@ module Elastic
|
|
32
31
|
# @option body :search_fields
|
33
32
|
# @option body :result_fields
|
34
33
|
# @option body [integer] :precision
|
34
|
+
# @option body [boolean] :precision_enabled
|
35
35
|
# @option arguments [Hash] :headers optional HTTP headers to send with the request
|
36
36
|
#
|
37
37
|
# @see https://www.elastic.co/guide/en/app-search/current/search-settings.html#search-settings-update
|
@@ -20,7 +20,6 @@
|
|
20
20
|
module Elastic
|
21
21
|
module EnterpriseSearch
|
22
22
|
module AppSearch
|
23
|
-
# Generated from build hash 835a1a87f357f7b7cfd3453b5c5a937c47995772
|
24
23
|
module Actions
|
25
24
|
# QuerySuggestion - Retrieve query suggestions
|
26
25
|
# Provide relevant query suggestions for incomplete queries
|
@@ -20,7 +20,6 @@
|
|
20
20
|
module Elastic
|
21
21
|
module EnterpriseSearch
|
22
22
|
module AppSearch
|
23
|
-
# Generated from build hash 835a1a87f357f7b7cfd3453b5c5a937c47995772
|
24
23
|
module Actions
|
25
24
|
# AdaptiveRelevanceSettings - Retrieve adaptive relevance settings
|
26
25
|
# Update suggestions process refresh
|
@@ -20,29 +20,28 @@
|
|
20
20
|
module Elastic
|
21
21
|
module EnterpriseSearch
|
22
22
|
module AppSearch
|
23
|
-
# Generated from build hash 835a1a87f357f7b7cfd3453b5c5a937c47995772
|
24
23
|
module Actions
|
25
24
|
# ElasticsearchSearch - Run a search
|
26
25
|
# Execute the provided Elasticsearch search query against an App Search Engine
|
27
26
|
#
|
28
27
|
# @param [String] engine_name Name of the engine (*Required*)
|
29
28
|
# @param [Hash] arguments endpoint arguments
|
30
|
-
# @option arguments [Hash] :body
|
31
|
-
# @option
|
32
|
-
# @option body :analytics
|
29
|
+
# @option arguments [Hash] :body Query parameters to be passed to Elasticsearch _search API
|
30
|
+
# @option arguments [Object] :es_search_query_params Query parameters to be passed to Elasticsearch _search API
|
33
31
|
# @option arguments [Hash] :headers optional HTTP headers to send with the request
|
32
|
+
# @option headers [String] :X-Enterprise-Search-Analytics The search query associated with this request when recording search analytics
|
33
|
+
# @option headers [String] :X-Enterprise-Search-Analytics-Tags Analytics tags to be applied with this search request
|
34
34
|
#
|
35
35
|
# @see https://www.elastic.co/guide/en/app-search/current/elasticsearch-search-api-reference.html
|
36
36
|
#
|
37
37
|
def search_es_search(engine_name, arguments = {})
|
38
38
|
raise ArgumentError, "Required parameter 'engine_name' missing" unless engine_name
|
39
|
-
raise ArgumentError, "Required parameter 'body (request)' missing" unless arguments[:body]
|
40
39
|
|
41
40
|
body = arguments.delete(:body) || {}
|
42
41
|
headers = arguments.delete(:headers) || {}
|
43
42
|
request(
|
44
43
|
:post,
|
45
|
-
"api/as/
|
44
|
+
"api/as/v1/engines/#{engine_name}/elasticsearch/_search/",
|
46
45
|
arguments,
|
47
46
|
body,
|
48
47
|
headers
|
@@ -20,7 +20,6 @@
|
|
20
20
|
module Elastic
|
21
21
|
module EnterpriseSearch
|
22
22
|
module AppSearch
|
23
|
-
# Generated from build hash 835a1a87f357f7b7cfd3453b5c5a937c47995772
|
24
23
|
module Actions
|
25
24
|
# SearchExplain - Retrieve the search query
|
26
25
|
# Submit a search and retrieve an Elasticsearch query
|
@@ -50,7 +49,7 @@ module Elastic
|
|
50
49
|
headers = arguments.delete(:headers) || {}
|
51
50
|
request(
|
52
51
|
:post,
|
53
|
-
"api/as/
|
52
|
+
"api/as/v1/engines/#{engine_name}/search_explain/",
|
54
53
|
arguments,
|
55
54
|
body,
|
56
55
|
headers
|
@@ -20,7 +20,6 @@
|
|
20
20
|
module Elastic
|
21
21
|
module EnterpriseSearch
|
22
22
|
module AppSearch
|
23
|
-
# Generated from build hash 835a1a87f357f7b7cfd3453b5c5a937c47995772
|
24
23
|
module Actions
|
25
24
|
# Analytics - Query for analytics click data
|
26
25
|
# Returns the number of clicks received by a document in descending order
|
@@ -19,7 +19,6 @@
|
|
19
19
|
|
20
20
|
module Elastic
|
21
21
|
module EnterpriseSearch
|
22
|
-
# Generated from build hash 835a1a87f357f7b7cfd3453b5c5a937c47995772
|
23
22
|
module Actions
|
24
23
|
# Health - Get information on the health of a deployment and basic statistics around resource usage
|
25
24
|
# Get information on the health of a deployment and basic statistics around resource usage
|
@@ -19,7 +19,6 @@
|
|
19
19
|
|
20
20
|
module Elastic
|
21
21
|
module EnterpriseSearch
|
22
|
-
# Generated from build hash 835a1a87f357f7b7cfd3453b5c5a937c47995772
|
23
22
|
module Actions
|
24
23
|
# Stats - Get information about the resource usage of the application, the state of different internal queues, etc.
|
25
24
|
# Get information about the resource usage of the application, the state of different internal queues, etc.
|
@@ -25,7 +25,7 @@ require 'base64'
|
|
25
25
|
|
26
26
|
module Elastic
|
27
27
|
module EnterpriseSearch
|
28
|
-
CLIENT_NAME = 'elastic-
|
28
|
+
CLIENT_NAME = 'elastic-enterprise-search-ruby'
|
29
29
|
CLIENT_VERSION = Elastic::EnterpriseSearch::VERSION
|
30
30
|
|
31
31
|
# Module included in Elastic::Enterprise::Client for http requests.
|
@@ -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
|
# ContentSources - Retrieves a content source's automatic query refinement details
|
26
25
|
# Retrieves a content source's automatic query refinement details
|
@@ -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
|
# SyncJobs - Issue commands to a Content Source's sync jobs
|
26
25
|
# Control a content source's sync jobs
|
@@ -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
|
# Analytics - Capture click and feedback analytic events
|
26
25
|
# Capture Analytic events for click and feedback
|