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/05/22 22:38:16 UTC
[Solr Wiki] Update of "Flare/HowTo" 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/Flare/HowTo
------------------------------------------------------------------------------
+ THESE INSTRUCTIONS ARE STILL A WORK IN PROGRESS
+
== Prerequisites ==
- * [http://www.rubyonrails.org Ruby on Rails] 1.2
+ * [http://www.rubyonrails.org Ruby on Rails] 1.2.x
* Java 1.5+
== Getting Started ==
The example shown at http://code4lib.org/node/154 can be run locally following these steps:
+ 1. Install Solr (a nightly build is recommended)
+ 2. Install solr-ruby gem: {{{gem install solr-ruby}}}
+ 3. Download Flare: {{{svn co https://svn.apache.org/repos/asf/lucene/solr/trunk/client/ruby/flare}}}
+ 4. Launch Solr: {{{cd <solr installation example directory>; java -Dsolr.solr.home=<point to solr-ruby's solr home dir> -jar start.jar }}}
+ 5. (new shell) Import sample data: cd solr-ruby (need to package examples up too, or should these instructions be modified to check out solr-ruby from svn??) ; examples/delicious_library/dl_importer.rb examples/delicious_library/sample_export.txt
+ 6. Launch Rails: {{{cd flare ; script/server}}}
+ 7. Up and running: http://localhost:3000
- 1. GET CODE: svn co https://svn.apache.org/repos/asf/lucene/solr/trunk/client/ruby solr-flare
- 2. BUILD SOLRB LIBRARY: cd solr-flare/solrb ; rake package ; gem install pkg/solr/solrb-0.0.1.gem
- 3. LAUNCH SOLR VIA JETTY: cd solr ; java -Dsolr.solr.home=../examples/delicious_library/ -jar start.jar
- 4. (new shell) IMPORT SAMPLE DATA: cd solr-flare/solrb ; examples/delicious_library/dl_importer.rb examples/delicious_library/sample_export.txt
- 5. LAUNCH RAILS: cd ../flare ; script/server
- 6. HIT IT: http://localhost:3000
-