module Elastic
Helper for the meta-header value for Cloud
Constants
- ELASTICSEARCH_SERVICE_VERSION
-
Constant for elastic-transport meta-header
Public Class Methods
Source
# File lib/elasticsearch.rb, line 212 def self.client_meta_version regexp = /^([0-9]+\.[0-9]+\.[0-9]+)\.?([a-z0-9.-]+)?$/ match = Elasticsearch::VERSION.match(regexp) return "#{match[1]}p" if match[2] Elasticsearch::VERSION end
If the version is X.X.X.pre/alpha/beta, use X.X.Xp for the meta-header: