Skip to content

Adding fields the a Spotlight Solr Document

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.

Clone this wiki locally