myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2405] trunk/app/models/pack.rb: renamed pack sea


From: noreply
Subject: [myexperiment-hackers] [2405] trunk/app/models/pack.rb: renamed pack search_boost to rank for contribution cache
Date: Thu, 13 May 2010 04:02:02 -0400 (EDT)

Revision
2405
Author
dgc
Date
2010-05-13 04:02:02 -0400 (Thu, 13 May 2010)

Log Message

renamed pack search_boost to rank for contribution cache

Modified Paths

Diff

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]