Skip to content

Commit

Permalink
rake search:reindex does it in batches of 100, and canonical meta tag…
Browse files Browse the repository at this point in the history
… ignores www
  • Loading branch information
jgilliam committed Dec 6, 2009
1 parent 2c33b5c commit e343841
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/shared/_head.html.erb
@@ -1,5 +1,5 @@
<link rel="icon" href="<%= current_government.fav_icon.url(:icon_16) %>">
<% if request.subdomains.any? %>
<% if request.subdomains.any? and request.subdomains[0] != 'www' %>
<link rel="canonical" href="http://<%= current_government.base_url %><%= url_for %>" />
<% end %>
<% if @rss_url and @page_title %>
Expand Down
6 changes: 3 additions & 3 deletions lib/tasks/search.rake
Expand Up @@ -3,11 +3,11 @@ namespace :search do
desc "reindex solr"
task :reindex => :environment do
puts "reindexing Priority"
Priority.rebuild_solr_index
Priority.rebuild_solr_index(:batch_size => 100)
puts "reindexing Point"
Point.rebuild_solr_index
Point.rebuild_solr_index(:batch_size => 100)
puts "reindexing Document"
Document.rebuild_solr_index
Document.rebuild_solr_index(:batch_size => 100)
end

end

0 comments on commit e343841

Please sign in to comment.