lib/elastic/enterprise-search/client.rb in elastic-enterprise-search-7.12.1 vs lib/elastic/enterprise-search/client.rb in elastic-enterprise-search-7.13.0.pre

- old
+ new

@@ -20,21 +20,9 @@ require 'elastic/enterprise-search/request' require 'elastic/enterprise-search/utils' require 'elasticsearch-transport' module Elastic - # If the version is X.X.X.pre/alpha/beta, use X.X.Xp for the meta-header: - 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 - - META_HEADER_SERVICE_VERSION = [:ent, client_meta_version].freeze - ENTERPRISE_SERVICE_VERSION = [:ent, client_meta_version].freeze - module EnterpriseSearch # API client for the {Elastic Enterprise Search API}[https://www.elastic.co/enterprise-search]. # This is the main client from which the Workplace Search and App Search clients inherit. class Client DEFAULT_TIMEOUT = 15