mirror of https://github.com/apache/lucene.git
Allow filename to be specified on the command-line
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@510552 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
72ee2ce324
commit
022e5a8234
|
@ -14,11 +14,11 @@ require 'hpricot'
|
||||||
require 'solr'
|
require 'solr'
|
||||||
|
|
||||||
solr_url = ENV["SOLR_URL"] || "http://localhost:8983/solr"
|
solr_url = ENV["SOLR_URL"] || "http://localhost:8983/solr"
|
||||||
debug = ARGV[0] == "-debug"
|
debug = ARGV[1] == "-debug"
|
||||||
|
|
||||||
solr = Solr::Connection.new(solr_url)
|
solr = Solr::Connection.new(solr_url)
|
||||||
|
|
||||||
html = Hpricot(open('poems.html'))
|
html = Hpricot(open(ARGV[0]))
|
||||||
max = 320
|
max = 320
|
||||||
|
|
||||||
def next_blockquote(elem)
|
def next_blockquote(elem)
|
||||||
|
|
Loading…
Reference in New Issue