Skip to content

How to Reset Solr & Fedora

Glen Horton edited this page Jan 28, 2019 · 1 revision

Do the following steps in order (In the ucrate root directory):

  1. Clean Solr
    solr_wrapper -d solr/config/ --collection_name hydra-development clean
    solr_wrapper -d solr/config/ --collection_name hydra-test clean
  2. Start Solr
    solr_wrapper -d solr/config/ --collection_name hydra-development
  3. Remove the fedora directory
    rm -r tmp/fcrepo4-development-data/
  4. Start Fedora
    fcrepo_wrapper -p 8984
  5. Note: You may need to run the following commands in the rails console (rails console)
    AdminSet.find('admin_set/default').delete
    ActiveFedora::Base.eradicate('admin_set/default')
  6. Create the default Admin Set (may need to run twice)
    bin/rails hyrax:default_admin_set:create
  7. Create default collection types
    bundle exec rails hyrax:default_collection_types:create