From 8756ade7f64e8ec430779bb68ceb17d13ec8e955 Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Tue, 3 Apr 2007 00:52:17 +0000 Subject: [PATCH] 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 --- client/ruby/solr-ruby/lib/solr/indexer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ruby/solr-ruby/lib/solr/indexer.rb b/client/ruby/solr-ruby/lib/solr/indexer.rb index 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::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)