Commit fc5d5b0ef3d60b9a35f128dc70ec2ec5c05211ed
1 parent
3fc7f548
Exists in
master
and in
29 other branches
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 | 639 | :order => [:f_type, :f_published_at, :f_profile_type, :f_category] |
640 | 640 | |
641 | 641 | acts_as_searchable :additional_fields => [ |
642 | - {:name => {:type => :string}}, | |
642 | + {:name_sort => {:type => :string}}, | |
643 | 643 | {:public => {:type => :boolean}}, |
644 | 644 | {:environment_id => {:type => :integer}}, |
645 | 645 | ] + facets_fields_for_solr, |
646 | 646 | :exclude_fields => [:setting], |
647 | - :include => [:profile, :comments], | |
647 | + :include => [:profile, :comments, :categories], | |
648 | 648 | :facets => facets_option_for_solr, |
649 | 649 | :boost => proc {|a| 10 if a.profile.enabled}, |
650 | 650 | :if => proc{|a| ! ['RssFeed'].include?(a.class.name)} | ... | ... |