Sha256: c580edbd6509dae07406e56bc90bd7e1895ceead6fc5a2bd23bc52fc6e92ac4b
Contents?: true
Size: 747 Bytes
Versions: 2
Compression:
Stored size: 747 Bytes
Contents
module Elasticsearch module API module Actions # Retrieve an indexed script from Elasticsearch # # @option arguments [String] :id Template ID (*Required*) # @option arguments [Hash] :body The document # # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html # def get_template(arguments={}) raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] method = HTTP_GET path = "_search/template/#{arguments[:id]}" params = {} body = arguments[:body] Utils.__rescue_from_not_found do perform_request(method, path, params, body).body end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elasticsearch-api-1.0.11 | lib/elasticsearch/api/actions/get_template.rb |
elasticsearch-api-1.0.10 | lib/elasticsearch/api/actions/get_template.rb |