You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Peter Mangiafico edited this page Oct 20, 2015
·
1 revision
Adding to the Solr Document Used by Spotlight
To add solr fields to the solr document generated by spotlight indexing, first determine if they are general SearchWorks fields or fields that will be specific to Spotlight. If they are general SearchWork fields, stop and go to the SearchWorks indexer.
If they are Spotlight specific fields, go to to lib/spotlight/dor/indexer.rb and create a method that adds to the solr document. Then add a before_index method that point to your new method. See the indexer.rb file for an example.