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.



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

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

Instance Method Details

#delete(id) ⇒ Object



38
39
40
# File 'lib/elasticity/bulk.rb', line 38

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

#index(id, attributes) ⇒ Object



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

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

#update(id, attributes) ⇒ Object



34
35
36
# File 'lib/elasticity/bulk.rb', line 34

def update(id, attributes)
  super(@index_name, id, attributes)
end