mirror of https://github.com/apache/lucene.git
Allow passing through of options to Solr::Connection
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@524982 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
421dc4ffc8
commit
8756ade7f6
|
@ -14,7 +14,7 @@ class Solr::Indexer
|
|||
def self.index(data_source, mapper, options={})
|
||||
solr_url = options[:solr_url] || ENV["SOLR_URL"] || "http://localhost:8983/solr"
|
||||
|
||||
solr = Solr::Connection.new(solr_url)
|
||||
solr = Solr::Connection.new(solr_url, options) #TODO - these options contain the solr_url and debug keys also, so tidy up what gets passed
|
||||
data_source.each do |record|
|
||||
document = mapper.map(record)
|
||||
|
||||
|
|
Loading…
Reference in New Issue