Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Allow filename to be specified on the command-line

Erik Hatcher022e5a823413
diff --git a/client/ruby/solr-ruby/examples/tang/tang_importer.rb b/client/ruby/solr-ruby/examples/tang/tang_importer.rb
index 9e6eecea72d..3b87685b3b1 100755
--- a/client/ruby/solr-ruby/examples/tang/tang_importer.rb
+++ b/client/ruby/solr-ruby/examples/tang/tang_importer.rb
@@ -14,11 +14,11 @@ require 'hpricot'
require 'solr'
solr_url = ENV["SOLR_URL"] || "http://localhost:8983/solr"
-debug = ARGV[0] == "-debug"
+debug = ARGV[1] == "-debug"
solr = Solr::Connection.new(solr_url)
-html = Hpricot(open('poems.html'))
+html = Hpricot(open(ARGV[0]))
max = 320
def next_blockquote(elem)