class DogBiscuits::PackageIndexer
Public Instance Methods
contributors_to_index()
click to toggle source
NB. include 'contributor' here if it is used in the form
# File lib/dog_biscuits/indexers/package_indexer.rb, line 8 def contributors_to_index [] end
do_local_indexing(solr_doc)
click to toggle source
Add any custom indexing into here. Method must exist, but can be empty.
@param [Hash] solr_doc
# File lib/dog_biscuits/indexers/package_indexer.rb, line 15 def do_local_indexing(solr_doc) solr_doc['package_ids_ssim'] = object.packages.map(&:id) end