Commit fc5d5b0ef3d60b9a35f128dc70ec2ec5c05211ed

Authored by Rafael Martins
1 parent 3fc7f548

Index categories on article searching

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/models/article.rb
@@ -639,12 +639,12 @@ class Article < ActiveRecord::Base @@ -639,12 +639,12 @@ class Article < ActiveRecord::Base
639 :order => [:f_type, :f_published_at, :f_profile_type, :f_category] 639 :order => [:f_type, :f_published_at, :f_profile_type, :f_category]
640 640
641 acts_as_searchable :additional_fields => [ 641 acts_as_searchable :additional_fields => [
642 - {:name => {:type => :string}}, 642 + {:name_sort => {:type => :string}},
643 {:public => {:type => :boolean}}, 643 {:public => {:type => :boolean}},
644 {:environment_id => {:type => :integer}}, 644 {:environment_id => {:type => :integer}},
645 ] + facets_fields_for_solr, 645 ] + facets_fields_for_solr,
646 :exclude_fields => [:setting], 646 :exclude_fields => [:setting],
647 - :include => [:profile, :comments], 647 + :include => [:profile, :comments, :categories],
648 :facets => facets_option_for_solr, 648 :facets => facets_option_for_solr,
649 :boost => proc {|a| 10 if a.profile.enabled}, 649 :boost => proc {|a| 10 if a.profile.enabled},
650 :if => proc{|a| ! ['RssFeed'].include?(a.class.name)} 650 :if => proc{|a| ! ['RssFeed'].include?(a.class.name)}