Class: Traject::SolrJWriter::UpdatePackage

Inherits:
Object
  • Object
show all
Defined in:
lib/traject/solrj_writer.rb

Overview

just a tuple of a SolrInputDocument and a Traject::Indexer::Context it came from

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(doc, ctx) ⇒ UpdatePackage

Returns a new instance of UpdatePackage.



75
76
77
78
# File 'lib/traject/solrj_writer.rb', line 75

def initialize(doc, ctx)
  self.solr_document = doc
  self.context = ctx
end

Instance Attribute Details

#contextObject

Returns the value of attribute context.



74
75
76
# File 'lib/traject/solrj_writer.rb', line 74

def context
  @context
end

#solr_documentObject

Returns the value of attribute solr_document.



74
75
76
# File 'lib/traject/solrj_writer.rb', line 74

def solr_document
  @solr_document
end