Install notes (Dive into Hydra)
https://github.com/projecthydra/hydra/wiki/Dive-into-Hydra
----------------------------------------------------------
gem install rails
rails new hydra-demo
cp ~/Documents/hydracamp/v8.1.1.zip hydra-demo/tmp/ #note: usually you would use the gem jetty-wrapper
git init
rails server # if on virtualbox, $ rails server -b 0.0.0.0
# navigate to http://localhost:3000/
add Hydra to the gem files
bundle install
commit to git repo
rails generate hydra:install
git add .
git commit -m "Ran the hydra generator"
rake jetty:start
navigate to http://localhost:8983, see 2 links (fedora, solr)
do what it tells you on the welcome page at localhost:3000
make some books. you can look at them in rails console like
2.2.0 :016 > puts b.resource.dump(:ttl)
2.2.0 :016 > puts b.resource.dump(:ntriples)
b.to_solr.except([any field])
when you index as :stored_searchable
it gives your solr field the suffix tesim (text in english stored indexed multivalued)
app/controllers/catalog_controller.rb
you can move config.default_solr_params = {
:qt => ’search’,
:rows => 10
into solr config to optimize
SUFIA
-----
integrates with browse everything or local file system
install notes in the readme: https://github.com/projecthydra/sufia