Method: ODBA::IndexCommon#fill

Defined in:
lib/odba/index.rb

#fill(targets) ⇒ Object



62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/odba/index.rb', line 62

def fill(targets)
  @proc_origin = nil
  rows = []
  targets.flatten.each { |target|
    target_id = target.odba_id
    origins = proc_instance_origin.call(target)
    origins.each { |origin|
        search_terms(origin).each { |term|
          do_update_index( origin.odba_id, term, target_id)
        }
    }
  }
end