Module: Eson::Shared::Index

Extended by:
API
Defined in:
lib/eson/shared/core/index.rb

Overview

Requests using this API have the following properties:

The request supports the following parameters: type, id, doc, version, op_type, routing, parent, percolate, replication, consistency, refresh, timeout, ttl, timestamp The request declares the following parameters as source parameters: doc The request does not operate on multiple indices.

Instance Method Summary collapse

Methods included from API

multi_types, no_indices

Methods included from Chainable

#chainable, #extendable

Instance Method Details

#item=(item) ⇒ Object



38
39
40
41
# File 'lib/eson/shared/core/index.rb', line 38

def item=(item)
  warn("item= is deprecated and replaced by doc=")
  self.doc = item
end

#multi_indexfalse

The request does not operate on multiple indices.

Returns:

  • (false)


13
# File 'lib/eson/shared/core/index.rb', line 13

multi_index false

#parametersArray<String>

The request supports the following parameters: type, id, doc, version, op_type, routing, parent, percolate, replication, consistency, refresh, timeout, ttl, timestamp

Returns:

  • (Array<String>)

    The parameters



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/eson/shared/core/index.rb', line 19

parameters(
  :type, 
  :id,
  :doc,
  :version,
  :op_type,
  :routing,
  :parent,
  :percolate,
  :replication,
  :consistency,
  :refresh,
  :timeout,
  :ttl,
  :timestamp
)

#source_paramArray<String>

The request declares the following parameters as source parameters: doc

Returns:

  • (Array<String>)

    The source parameters



16
# File 'lib/eson/shared/core/index.rb', line 16

source_param :doc