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 Apache Wiki <wi...@apache.org> on 2007/02/05 09:52:14 UTC
[Solr Wiki] Update of "solrb" by ErikHatcher
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by ErikHatcher:
http://wiki.apache.org/solr/solrb
The comment on the change is:
use solrshell instead of IRB directly.
------------------------------------------------------------------------------
* Check out solrb {{{svn co http://svn.apache.org/repos/asf/lucene/solr/trunk/client/ruby/solrb}}}
* {{{cd solrb/solr}}}
* Launch Solr: {{{java -jar start.jar}}}
- * (in a separate shell) Launch IRB: {{{cd solrb ; irb -Ilib}}}
+ * (in a separate shell) Launch solrshell: {{{cd solrb ; script/solrshell}}}
{{{
- require 'solr' # load the library
- include Solr # Allow Solr:: to be omitted from class/module references
-
# connect to the solr instance
conn = Connection.new('http://localhost:8983/solr', :autocommit => :on)