Modified: trunk/app/models/pack.rb (2404 => 2405)
--- trunk/app/models/pack.rb 2010-05-12 16:06:25 UTC (rev 2404)
+++ trunk/app/models/pack.rb 2010-05-13 08:02:02 UTC (rev 2405)
@@ -27,7 +27,7 @@
format_attribute :description
acts_as_solr(:fields => [ :title, :description, :contributor_name, :tag_list ],
- :boost => "search_boost",
+ :boost => "rank",
:include => [ :comments ]) if Conf.solr_enable
has_many :contributable_entries,
@@ -893,7 +893,7 @@
return item_data
end
- def search_boost
+ def rank
# initial boost depends on viewings count
boost = contribution.viewings_count / 100