A ruby “application” for testing the Stanford University Libraries SearchWorks Solr index, using rspec-solr and rsolr gems.
The main reason this is in publicly accessible web space is to allow it to serve as an exemplar for folks who want to use rspec-solr or who want to figure out a way to automate testing searches against a Solr index.
If you wish to create a similar app for YOUR Solr index, you can fork this project or do something like the following:
Use a command line argument:
rake passing URL=http://your_solr_baseurl
Use a config file
copy config/solr.yml from this project
If you wish to keep your solr url out of a remote git repo, you can do this:
git update-index --assume-unchanged config/solr.yml NOTE: in spec/spec_helper.rb, line 10 or shows the default expected yml group is "test"
There are lots of examples in the spec folder.
See rspec-solr Gem documentation for the full syntax. Documentation around here somewhere:
Create your feature branch (`git checkout -b my-new-feature`)
Commit your changes (`git commit -am 'Added some feature'`)
Push to the branch (`git push origin my-new-feature`)
Create new Pull Request