Class: Traject::SolrJWriter::UpdatePackage
- Inherits:
-
Object
- Object
- Traject::SolrJWriter::UpdatePackage
- 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
-
#context ⇒ Object
Returns the value of attribute context.
-
#solr_document ⇒ Object
Returns the value of attribute solr_document.
Instance Method Summary collapse
-
#initialize(doc, ctx) ⇒ UpdatePackage
constructor
A new instance of UpdatePackage.
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
#context ⇒ Object
Returns the value of attribute context.
83 84 85 |
# File 'lib/traject/solrj_writer.rb', line 83 def context @context end |
#solr_document ⇒ Object
Returns the value of attribute solr_document.
83 84 85 |
# File 'lib/traject/solrj_writer.rb', line 83 def solr_document @solr_document end |