Method: Elasticsearch::API::Synonyms::Actions#get_synonyms_sets
- Defined in:
- lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb
#get_synonyms_sets(arguments = {}) ⇒ Object
Get all synonym sets. Get a summary of all defined synonym sets.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb', line 45 def get_synonyms_sets(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'synonyms.get_synonyms_sets' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = '_synonyms' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |