Sha256: 278e8c5b459b3ec79e9181354d739f295b4ba83c42038fa068094c3d85a8d251
Contents?: true
Size: 814 Bytes
Versions: 69
Compression:
Stored size: 814 Bytes
Contents
module Elasticsearch module API module Actions # Retrieve an indexed script from Elasticsearch # # @option arguments [String] :id Script ID (*Required*) # @option arguments [String] :lang Script language (*Required*) # # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-scripting.html#_indexed_scripts # def get_script(arguments={}) raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] raise ArgumentError, "Required argument 'lang' missing" unless arguments[:lang] method = HTTP_GET path = "_scripts/#{arguments[:lang]}/#{arguments[:id]}" params = {} body = nil perform_request(method, path, params, body).body end end end end
Version data entries
69 entries across 69 versions & 6 rubygems