aboutsummaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorfrancis <francis>2008-03-06 12:17:20 +0000
committerfrancis <francis>2008-03-06 12:17:20 +0000
commit41e8abfbfba783122ef2ff10cb794ac2d5895fe1 (patch)
tree3cbcb197cf92710d224703ae75a6729158ace171 /script
parentf3c4eb0a94502c072efec4acbe80c89416586aba (diff)
Lock while indexing.
Scripts to restart solr, and update index.
Diffstat (limited to 'script')
-rwxr-xr-xscript/restart-solr12
-rwxr-xr-xscript/update-solr-index7
2 files changed, 19 insertions, 0 deletions
diff --git a/script/restart-solr b/script/restart-solr
new file mode 100755
index 000000000..bf7b9194d
--- /dev/null
+++ b/script/restart-solr
@@ -0,0 +1,12 @@
+#!/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/update-solr-index b/script/update-solr-index
new file mode 100755
index 000000000..33415aa9c
--- /dev/null
+++ b/script/update-solr-index
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+LOC=`dirname $0`
+
+$LOC/runner 'InfoRequest.update_solr_index()'
+
+