|
|
|
Oh no! Things are all mucked up in GALILEO!
|
|
|
|
|
|
|
|
the Rails Console is your friend. `RAILS_ENV=production bundle exec rails c`
|
|
|
|
|
|
|
|
Do indexing:
|
|
|
|
|
|
|
|
`Sunspot.index!(Institution.find_by_code('uga1'))` - Reindex UGA, commit to Solr
|
|
|
|
`Sunspot.index!(Institution.all)` - Reindex all Institution records, commit to Solr
|
|
|
|
|
|
|
|
But Reindexing only _updates_ records in Solr. You may find yourselves with a Record in solr that shouldn't be there. Removing these orphan records is a little more tricky, but again the console is your friend. Sunspot provides a few removal methods:
|
|
|
|
|
|
|
|
* `Sunspot.remove_by_id` - if you still have an ActiveRecord object with an ID
|
|
|
|
* `Sunspot.delete_by_query` - takes a solr query as a string and deletes the matching record
|
|
|
|
|
|
|
|
be sure to `Sunspot.commit` after using the above |
|
|
|
\ No newline at end of file |