1
2
3
4
5
6
7
8
9
10
11
12
13
|
require_dependency 'national_region'
ActiveSupport.run_load_hooks :solr_national_region
class NationalRegion
extend SolrPlugin::ActsAsSearchable
acts_as_searchable fields: SEARCHABLE_FIELDS.map{ |field, options|
{field => {boost: options[:weight]}}
}
end
|