You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by eh...@apache.org on 2007/02/22 16:36:40 UTC
svn commit: r510552 -
/lucene/solr/trunk/client/ruby/solr-ruby/examples/tang/tang_importer.rb
Author: ehatcher
Date: Thu Feb 22 07:36:39 2007
New Revision: 510552
URL: http://svn.apache.org/viewvc?view=rev&rev=510552
Log:
Allow filename to be specified on the command-line
Modified:
lucene/solr/trunk/client/ruby/solr-ruby/examples/tang/tang_importer.rb
Modified: lucene/solr/trunk/client/ruby/solr-ruby/examples/tang/tang_importer.rb
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/solr-ruby/examples/tang/tang_importer.rb?view=diff&rev=510552&r1=510551&r2=510552
==============================================================================
--- lucene/solr/trunk/client/ruby/solr-ruby/examples/tang/tang_importer.rb (original)
+++ lucene/solr/trunk/client/ruby/solr-ruby/examples/tang/tang_importer.rb Thu Feb 22 07:36:39 2007
@@ -14,11 +14,11 @@
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)