Module: Eson::Shared::GetMapping

Extended by:
API
Defined in:
lib/eson/shared/indices/get_mapping.rb

Overview

Requests using this API have the following properties:

The request supports the following parameters: types The request can operate on multiple indices.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from API

multi_types, no_indices, source_param

Methods included from Chainable

#chainable, #extendable

Instance Attribute Details

#typeObject

Returns the value of attribute type.



12
13
14
# File 'lib/eson/shared/indices/get_mapping.rb', line 12

def type
  @type
end

Instance Method Details

#multi_indextrue

The request can operate on multiple indices.

Returns:

  • (true)


17
# File 'lib/eson/shared/indices/get_mapping.rb', line 17

multi_index true

#parametersArray<String>

The request supports the following parameters: types

Returns:

  • (Array<String>)

    The parameters



14
# File 'lib/eson/shared/indices/get_mapping.rb', line 14

parameters :types

#typesObject



19
20
21
# File 'lib/eson/shared/indices/get_mapping.rb', line 19

def types
  @types || Array(@type)
end