Method: Elasticsearch::API::Synonyms::Actions#get
- Defined in:
- lib/elasticsearch/api/actions/synonyms/get.rb
#get(arguments = {}) ⇒ Object
Retrieves a synonym set This functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/elasticsearch/api/actions/synonyms/get.rb', line 38 def get(arguments = {}) raise ArgumentError, "Required argument 'synonyms_set' missing" unless arguments[:synonyms_set] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil _synonyms_set = arguments.delete(:synonyms_set) method = Elasticsearch::API::HTTP_GET path = "_synonyms/#{Utils.__listify(_synonyms_set)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |