class_docstr: Index csvs in Solr
docstr: send csv to Solr index
docstr_tok: ["send","csv","to","Solr","index"]
code: def index(self):
      """send csv to Solr index"""
      self.logger.info("Setting up Solr index...")
      solr = Solr(
          "http://{0}:{1}/solr/travel/".format(self.host, self.port),
          timeout=10000,
      )
  
      self.logger.info("Indexing %s..." % self.file)
      act = [
          self.format(passage, cid=cid)
          for cid, passage in self.csv_generator()
      ]
      solr.add(act)
  
      solr.optimize()
  
file_path: nboost/nboost/indexers/solr.py
imports: from typing import Dict
  from nboost.indexers.base import BaseIndexer
  from pysolr import Solr, SolrCoreAdmin
label_desc: Use image node_id 3 for calling the SolrIndexer obj's underlying member method code with example usage: obj.index() without return types