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.



84
85
86
87
# File 'lib/traject/solrj_writer.rb', line 84

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

Instance Attribute Details

#contextObject

Returns the value of attribute context.



83
84
85
# File 'lib/traject/solrj_writer.rb', line 83

def context
  @context
end

#solr_documentObject

Returns the value of attribute solr_document.



83
84
85
# File 'lib/traject/solrj_writer.rb', line 83

def solr_document
  @solr_document
end