diff options
-rwxr-xr-x | script/multiple-solr-query | 10 | ||||
-rwxr-xr-x | script/rebuild-solr-index | 16 | ||||
-rwxr-xr-x | script/restart-solr | 12 | ||||
-rwxr-xr-x | script/single-solr-query | 10 | ||||
-rwxr-xr-x | script/update-solr-index | 13 |
5 files changed, 0 insertions, 61 deletions
diff --git a/script/multiple-solr-query b/script/multiple-solr-query deleted file mode 100755 index 17c80e8a7..000000000 --- a/script/multiple-solr-query +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -set -x - -# Test solr multiple times - -LOC=`dirname $0` - -$LOC/runner 'InfoRequest.profile_search("'$1'")' - diff --git a/script/rebuild-solr-index b/script/rebuild-solr-index deleted file mode 100755 index 5d21b999b..000000000 --- a/script/rebuild-solr-index +++ /dev/null @@ -1,16 +0,0 @@ -#!/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()' - diff --git a/script/restart-solr b/script/restart-solr deleted file mode 100755 index bf7b9194d..000000000 --- a/script/restart-solr +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -# Stops and restarts the Solr (Lucene) search engine daemon. Redirects it -# to log. - -cd `dirname $0` -cd .. -rake solr:stop -nohup rake solr:start >log/solr.log 2>log/solr.err.log - - - diff --git a/script/single-solr-query b/script/single-solr-query deleted file mode 100755 index ce5b4a614..000000000 --- a/script/single-solr-query +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -set -x - -# Test solr - -LOC=`dirname $0` - -$LOC/runner 'STDOUT.write(InfoRequest.full_search("'$1'", "created_at desc", 10, 1, false).results.to_yaml)' - diff --git a/script/update-solr-index b/script/update-solr-index deleted file mode 100755 index 75e4304eb..000000000 --- a/script/update-solr-index +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -LOC=`dirname $0` - -# Info request (and hence incoming and outgoing message) indexing is updated -# incrementally by this separate batch job. This is so when an incoming -# message arrives it doesn't have to call Solr, so errors in the indexing won't -# go back to public body. -$LOC/runner 'InfoRequest.update_solr_index()' - -# Public bodies and users are updated by the model, immediately when it is saved. -# So nothing to do for them. - |