cirandas.net

ref: master

plugins/solr/lib/ext/user.rb


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

ActiveSupport.run_load_hooks :solr_user

class User

  extend SolrPlugin::ActsAsSearchable

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

end