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:
Erik Hatcher 2007-04-03 00:52:17 +00:00
parent 421dc4ffc8
commit 8756ade7f6
1 changed files with 1 additions and 1 deletions

View File

@ -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)