myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2357] trunk: added tags to file search and rake


From: noreply
Subject: [myexperiment-hackers] [2357] trunk: added tags to file search and rake task to rebuild index
Date: Tue, 30 Mar 2010 07:56:53 -0400 (EDT)

Revision
2357
Author
dgc
Date
2010-03-30 07:56:53 -0400 (Tue, 30 Mar 2010)

Log Message

added tags to file search and rake task to rebuild index

Modified Paths

Diff

Modified: trunk/Rakefile (2356 => 2357)


--- trunk/Rakefile	2010-03-30 09:28:16 UTC (rev 2356)
+++ trunk/Rakefile	2010-03-30 11:56:53 UTC (rev 2357)
@@ -8,3 +8,14 @@
 require 'rake/rdoctask'
 
 require 'tasks/rails'
+
+desc 'Rebuild Solr index'
+task "myexp:refresh:solr" do
+  require File.dirname(__FILE__) + '/config/environment'
+  Workflow.rebuild_solr_index
+  Blob.rebuild_solr_index
+  User.rebuild_solr_index
+  Network.rebuild_solr_index
+  Pack.rebuild_solr_index
+end
+

Modified: trunk/app/models/blob.rb (2356 => 2357)


--- trunk/app/models/blob.rb	2010-03-30 09:28:16 UTC (rev 2356)
+++ trunk/app/models/blob.rb	2010-03-30 11:56:53 UTC (rev 2357)
@@ -25,7 +25,7 @@
   acts_as_attributor
   acts_as_attributable
   
-  acts_as_solr(:fields => [:title, :local_name, :body, :kind, :uploader],
+  acts_as_solr(:fields => [:title, :local_name, :body, :kind, :uploader, :tag_list],
                :boost => "search_boost",
                :include => [ :comments ]) if Conf.solr_enable
 

reply via email to

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