Module: Elastic

Defined in:
lib/elastic/api/response.rb,
lib/elastic/enterprise_search.rb,
lib/elastic/app-search/api/engine.rb,
lib/elastic/app-search/api/schema.rb,
lib/elastic/app-search/api/search.rb,
lib/elastic/app-search/app_search.rb,
lib/elastic/app-search/api/api_key.rb,
lib/elastic/app-search/api/api_logs.rb,
lib/elastic/app-search/api/curation.rb,
lib/elastic/enterprise-search/utils.rb,
lib/elastic/app-search/api/documents.rb,
lib/elastic/enterprise-search/client.rb,
lib/elastic/app-search/api/put_schema.rb,
lib/elastic/enterprise-search/request.rb,
lib/elastic/enterprise-search/version.rb,
lib/elastic/app-search/api/denied_urls.rb,
lib/elastic/app-search/api/put_api_key.rb,
lib/elastic/app-search/api/synonym_set.rb,
lib/elastic/app-search/api/list_engines.rb,
lib/elastic/app-search/api/multi_search.rb,
lib/elastic/app-search/api/put_curation.rb,
lib/elastic/enterprise-search/api/stats.rb,
lib/elastic/workplace-search/api/search.rb,
lib/elastic/app-search/api/create_engine.rb,
lib/elastic/app-search/api/delete_engine.rb,
lib/elastic/app-search/api/list_api_keys.rb,
lib/elastic/app-search/api/put_documents.rb,
lib/elastic/enterprise-search/api/health.rb,
lib/elastic/enterprise-search/exceptions.rb,
lib/elastic/app-search/api/crawler_domain.rb,
lib/elastic/app-search/api/create_api_key.rb,
lib/elastic/app-search/api/delete_api_key.rb,
lib/elastic/app-search/api/list_curations.rb,
lib/elastic/app-search/api/list_documents.rb,
lib/elastic/app-search/api/search_explain.rb,
lib/elastic/enterprise-search/api/version.rb,
lib/elastic/workplace-search/api/document.rb,
lib/elastic/app-search/api/count_analytics.rb,
lib/elastic/app-search/api/crawler_metrics.rb,
lib/elastic/app-search/api/create_curation.rb,
lib/elastic/app-search/api/delete_curation.rb,
lib/elastic/app-search/api/index_documents.rb,
lib/elastic/app-search/api/put_synonym_set.rb,
lib/elastic/app-search/api/search_settings.rb,
lib/elastic/app-search/api/crawler_overview.rb,
lib/elastic/app-search/api/delete_documents.rb,
lib/elastic/app-search/api/log_clickthrough.rb,
lib/elastic/app-search/api/query_suggestion.rb,
lib/elastic/app-search/api/search_es_search.rb,
lib/elastic/enterprise-search/api/read_only.rb,
lib/elastic/enterprise-search/configuration.rb,
lib/elastic/app-search/api/list_synonym_sets.rb,
lib/elastic/workplace-search/api/synonym_set.rb,
lib/elastic/app-search/api/crawler_user_agent.rb,
lib/elastic/app-search/api/create_synonym_set.rb,
lib/elastic/app-search/api/delete_synonym_set.rb,
lib/elastic/app-search/api/put_crawler_domain.rb,
lib/elastic/workplace-search/api/current_user.rb,
lib/elastic/workplace-search/workplace_search.rb,
lib/elastic/app-search/api/put_crawler_sitemap.rb,
lib/elastic/app-search/api/put_search_settings.rb,
lib/elastic/app-search/api/list_crawler_domains.rb,
lib/elastic/app-search/api/top_clicks_analytics.rb,
lib/elastic/enterprise-search/api/put_read_only.rb,
lib/elastic/workplace-search/api/content_source.rb,
lib/elastic/workplace-search/api/list_documents.rb,
lib/elastic/app-search/api/crawler_crawl_request.rb,
lib/elastic/app-search/api/crawler_process_crawl.rb,
lib/elastic/app-search/api/create_crawler_domain.rb,
lib/elastic/app-search/api/delete_crawler_domain.rb,
lib/elastic/app-search/api/reset_search_settings.rb,
lib/elastic/app-search/api/top_queries_analytics.rb,
lib/elastic/enterprise-search/api/search_engines.rb,
lib/elastic/workplace-search/api/index_documents.rb,
lib/elastic/workplace-search/api/put_synonym_set.rb,
lib/elastic/app-search/api/add_meta_engine_source.rb,
lib/elastic/app-search/api/crawler_crawl_schedule.rb,
lib/elastic/app-search/api/create_crawler_sitemap.rb,
lib/elastic/app-search/api/delete_crawler_sitemap.rb,
lib/elastic/app-search/api/put_crawler_crawl_rule.rb,
lib/elastic/workplace-search/api/delete_documents.rb,
lib/elastic/app-search/api/put_crawler_entry_point.rb,
lib/elastic/workplace-search/api/command_sync_jobs.rb,
lib/elastic/workplace-search/api/external_identity.rb,
lib/elastic/workplace-search/api/list_synonym_sets.rb,
lib/elastic/workplace-search/api/delete_synonym_set.rb,
lib/elastic/workplace-search/api/put_content_source.rb,
lib/elastic/workplace-search/api/triggers_blocklist.rb,
lib/elastic/app-search/api/create_crawler_crawl_rule.rb,
lib/elastic/app-search/api/delete_crawler_crawl_rule.rb,
lib/elastic/app-search/api/delete_meta_engine_source.rb,
lib/elastic/app-search/api/crawler_url_tracing_result.rb,
lib/elastic/app-search/api/create_crawler_entry_point.rb,
lib/elastic/app-search/api/delete_crawler_entry_point.rb,
lib/elastic/app-search/api/put_crawler_crawl_schedule.rb,
lib/elastic/workplace-search/api/delete_all_documents.rb,
lib/elastic/workplace-search/api/list_content_sources.rb,
lib/elastic/app-search/api/adaptive_relevance_settings.rb,
lib/elastic/app-search/api/delete_active_crawl_request.rb,
lib/elastic/app-search/api/list_crawler_crawl_requests.rb,
lib/elastic/app-search/api/list_crawler_process_crawls.rb,
lib/elastic/workplace-search/api/create_content_source.rb,
lib/elastic/workplace-search/api/delete_content_source.rb,
lib/elastic/workplace-search/api/put_external_identity.rb,
lib/elastic/app-search/api/crawler_active_crawl_request.rb,
lib/elastic/app-search/api/create_crawler_crawl_request.rb,
lib/elastic/app-search/api/create_crawler_process_crawl.rb,
lib/elastic/workplace-search/api/create_analytics_event.rb,
lib/elastic/workplace-search/api/put_triggers_blocklist.rb,
lib/elastic/app-search/api/crawler_url_extraction_result.rb,
lib/elastic/app-search/api/crawler_url_validation_result.rb,
lib/elastic/app-search/api/delete_crawler_crawl_schedule.rb,
lib/elastic/app-search/api/adaptive_relevance_suggestions.rb,
lib/elastic/workplace-search/api/create_external_identity.rb,
lib/elastic/workplace-search/api/delete_external_identity.rb,
lib/elastic/workplace-search/api/list_external_identities.rb,
lib/elastic/workplace-search/api/put_content_source_icons.rb,
lib/elastic/app-search/api/put_adaptive_relevance_settings.rb,
lib/elastic/workplace-search/api/create_batch_synonym_sets.rb,
lib/elastic/workplace-search/api/delete_documents_by_query.rb,
lib/elastic/app-search/api/crawler_domain_validation_result.rb,
lib/elastic/app-search/api/crawler_process_crawl_denied_urls.rb,
lib/elastic/app-search/api/put_adaptive_relevance_suggestions.rb,
lib/elastic/app-search/api/delete_crawler_active_crawl_request.rb,
lib/elastic/app-search/api/list_adaptive_relevance_suggestions.rb,
lib/elastic/workplace-search/api/auto_query_refinement_details.rb,
lib/elastic/app-search/api/refresh_adaptive_relevance_update_process.rb

Overview

Licensed to Elasticsearch B.V. under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Elasticsearch B.V. licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Defined Under Namespace

Modules: API, EnterpriseSearch

Constant Summary collapse

ENTERPRISE_SERVICE_VERSION =
[:ent, client_meta_version].freeze

Class Method Summary collapse

Class Method Details

.client_meta_versionObject

If the version is X.X.X.pre/alpha/beta, use X.X.Xp for the meta-header:



37
38
39
40
41
42
43
# File 'lib/elastic/enterprise_search.rb', line 37

def self.client_meta_version
  regexp = /^([0-9]+\.[0-9]+\.[0-9]+)\.?([a-z0-9.-]+)?$/
  match = Elastic::EnterpriseSearch::VERSION.match(regexp)
  return "#{match[1]}p" if match[2]

  Elastic::EnterpriseSearch::VERSION
end