Method: Traject::Indexer#process_record
- Defined in:
- lib/traject/indexer.rb
#process_record(record) ⇒ Object Also known as: <<
Takes a single record, maps it, and sends it to the instance-configured writer. No threading, no logging, no error handling. Respects skipped records by not adding them. Returns the Traject::Indexer::Context.
Aliased as #<<
432 433 434 435 436 437 438 439 440 |
# File 'lib/traject/indexer.rb', line 432 def process_record(record) check_uncompleted context = Context.new(:source_record => record, :settings => settings, :source_record_id_proc => source_record_id_proc, :logger => logger) map_to_context!(context) writer.put( context ) unless context.skip? return context end |