cirandas.net

ref: master

plugins/solr/lib/ext/scrap.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
require_dependency 'scrap'

ActiveSupport.run_load_hooks :solr_scrap

class Scrap

  extend SolrPlugin::ActsAsSearchable

  acts_as_searchable fields: SEARCHABLE_FIELDS.map{ |field, options|
    {field => {boost: options[:weight]}}
  }

end