diff options
author | francis <francis> | 2008-03-13 11:29:46 +0000 |
---|---|---|
committer | francis <francis> | 2008-03-13 11:29:46 +0000 |
commit | d1481d19f0313d8dc5cf99ee0a02b648d313b813 (patch) | |
tree | ce4cc8a9e256bb3b5d234a97f3606091f5b085c3 /script/rebuild-solr-index | |
parent | 8c34e9bbcf78cb7711bf9803fcdcb70beded83b7 (diff) |
Order search results
Diffstat (limited to 'script/rebuild-solr-index')
-rwxr-xr-x | script/rebuild-solr-index | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/script/rebuild-solr-index b/script/rebuild-solr-index new file mode 100755 index 000000000..5d21b999b --- /dev/null +++ b/script/rebuild-solr-index @@ -0,0 +1,16 @@ +#!/bin/bash + +# Reindex everything in Solr, not just changed things + +LOC=`dirname $0` + +# Info requests are updated incrementally by update-solr-index, so first set +# them all to not up to date, then rebuild. +$LOC/runner "ActiveRecord::Base.connection.execute(\"update info_requests set solr_up_to_date = 'f'\")" +$LOC/runner 'InfoRequest.update_solr_index()' + +# These are updated in real time when the model is changed - so they aren't +# called in update-solr-index. So for this rebuild script, just rebuild them. +$LOC/runner 'PublicBody.rebuild_solr_index()' +$LOC/runner 'User.rebuild_solr_index()' + |