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
- #<<(request) ⇒ Object
- #bulk ⇒ Object
- #delete(args, immediate = nil) ⇒ Object
- #index(args, immediate = nil) ⇒ Object
-
#parameters ⇒ Array<String>
The request supports the following parameters: bulk.
-
#source_param ⇒ Array<String>
The request declares the following parameters as source parameters: bulk.
Methods included from API
multi_index, multi_types, no_indices
Methods included from Chainable
Instance Method Details
#<<(request) ⇒ Object
21 22 23 |
# File 'lib/eson/shared/core/bulk.rb', line 21 def <<(request) bulk << request end |
#bulk ⇒ Object
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 |
#parameters ⇒ Array<String>
The request supports the following parameters: bulk
15 |
# File 'lib/eson/shared/core/bulk.rb', line 15 parameters :bulk |
#source_param ⇒ Array<String>
The request declares the following parameters as source parameters: bulk
13 |
# File 'lib/eson/shared/core/bulk.rb', line 13 source_param :bulk |