Module: Eson::Shared::Bulk

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

Overview

Requests using this API have the following properties:

The request supports the following parameters: bulk The request declares the following parameters as source parameters: bulk

Instance Method Summary collapse

Methods included from API

multi_index, multi_types, no_indices

Methods included from Chainable

#chainable, #extendable

Instance Method Details

#<<(request) ⇒ Object



21
22
23
# File 'lib/eson/shared/core/bulk.rb', line 21

def <<(request)
  bulk << request
end

#bulkObject



17
18
19
# File 'lib/eson/shared/core/bulk.rb', line 17

def bulk
  @bulk ||= []
end

#delete(args, immediate = nil) ⇒ Object



29
30
31
# File 'lib/eson/shared/core/bulk.rb', line 29

def delete(args, immediate = nil)
  self << client.delete(args, false)
end

#index(args, immediate = nil) ⇒ Object



25
26
27
# File 'lib/eson/shared/core/bulk.rb', line 25

def index(args, immediate = nil)
  self << client.index(args, false)
end

#parametersArray<String>

The request supports the following parameters: bulk

Returns:

  • (Array<String>)

    The parameters



15
# File 'lib/eson/shared/core/bulk.rb', line 15

parameters :bulk

#source_paramArray<String>

The request declares the following parameters as source parameters: bulk

Returns:

  • (Array<String>)

    The source parameters



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

source_param :bulk