... | ... | @@ -4,8 +4,8 @@ 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
|
|
|
* `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:
|
|
|
|
... | ... | |