Apache Solr open-source search software
Allow passing through of options to Solr::Connection
Erik Hatcher8756ade7f64e
diff --git a/client/ruby/solr-ruby/lib/solr/indexer.rb b/client/ruby/solr-ruby/lib/solr/indexer.rbindex e6af3baa98c..9089b373b9d 100755--- a/client/ruby/solr-ruby/lib/solr/indexer.rb+++ b/client/ruby/solr-ruby/lib/solr/indexer.rb@@ -14,7 +14,7 @@ class Solr::Indexerdef 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 passeddata_source.each do |record|document = mapper.map(record)