Class: Elasticity::Bulk::Index

Inherits:
Elasticity::Bulk show all
Defined in:
lib/elasticity/bulk.rb

Instance Method Summary collapse

Methods inherited from Elasticity::Bulk

#execute

Constructor Details

#initialize(client, index_name) ⇒ Index

Returns a new instance of Index.



21
22
23
24
# File 'lib/elasticity/bulk.rb', line 21

def initialize(client, index_name)
  super(client)
  @index_name = index_name
end

Instance Method Details

#delete(type, id) ⇒ Object



30
31
32
# File 'lib/elasticity/bulk.rb', line 30

def delete(type, id)
  super(@index_name, type, id)
end

#index(type, id, attributes) ⇒ Object



26
27
28
# File 'lib/elasticity/bulk.rb', line 26

def index(type, id, attributes)
  super(@index_name, type, id, attributes)
end