module Elasticsearch::API::Features::Actions

Public Instance Methods

get_features(arguments = {}) click to toggle source

Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot

@option arguments [Time] :master_timeout Explicit operation timeout for connection to master node @option arguments [Hash] :headers Custom HTTP headers

@see www.elastic.co/guide/en/elasticsearch/reference/7.15/get-features-api.html

# File lib/elasticsearch/api/actions/features/get_features.rb, line 29
def get_features(arguments = {})
  headers = arguments.delete(:headers) || {}

  arguments = arguments.clone

  method = Elasticsearch::API::HTTP_GET
  path   = "_features"
  params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)

  body = nil
  perform_request(method, path, params, body, headers).body
end
reset_features(arguments = {}) click to toggle source

Resets the internal state of features, usually by deleting system indices 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.

@option arguments [Hash] :headers Custom HTTP headers

@see www.elastic.co/guide/en/elasticsearch/reference/7.15/modules-snapshots.html

# File lib/elasticsearch/api/actions/features/reset_features.rb, line 32
def reset_features(arguments = {})
  headers = arguments.delete(:headers) || {}

  arguments = arguments.clone

  method = Elasticsearch::API::HTTP_POST
  path   = "_features/_reset"
  params = {}

  body = nil
  perform_request(method, path, params, body, headers).body
end