Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/lui-solr
authorDennis Schafroth <dennis@schafroth.com>
Fri, 29 Nov 2013 10:42:39 +0000 (11:42 +0100)
committerDennis Schafroth <dennis@schafroth.com>
Fri, 29 Nov 2013 10:42:39 +0000 (11:42 +0100)
conf/solrconfig-devl.xml
conf/solrconfig-master.xml
conf/solrconfig-slave.xml
scripts/zookeeper.sh [changed mode: 0644->0755]

index a828f63..4c847be 100644 (file)
        <str name="echoParams">explicit</str>
        <int name="rows">10</int>
        <str name="df">text</str>
+       <str name="fl">*,score</str>
      </lst>
     <!-- In addition to defaults, "appends" params can be specified
          to identify values which should be appended to the list of
index bb59a2c..ccde565 100644 (file)
        <str name="echoParams">explicit</str>
        <int name="rows">10</int>
        <str name="df">text</str>
+       <str name="fl">*,score</str>
      </lst>
     <!-- In addition to defaults, "appends" params can be specified
          to identify values which should be appended to the list of
index 2616aed..22cde8b 100644 (file)
        <str name="echoParams">explicit</str>
        <int name="rows">10</int>
        <str name="df">text</str>
+       <str name="fl">*,score</str>
      </lst>
     <!-- In addition to defaults, "appends" params can be specified
          to identify values which should be appended to the list of
old mode 100644 (file)
new mode 100755 (executable)
index 36ea6bb..8ff8bb4
@@ -1,8 +1,28 @@
-cd example
-java -Dbootstrap_confdir=./solr/collection1/conf -Dcollection.configName=myconf -DzkRun -DzkHost=localhost:9983,localhost:8574,localhost:9900 -DnumShards=2 -jar start.jar > solr.log & 
-cd ../example2
-java -Djetty.port=7574 -DzkRun -DzkHost=localhost:9983,localhost:8574,localhost:9900 -jar start.jar > solr.log & 
-cd ../exampleB
-java -Djetty.port=8900 -DzkRun -DzkHost=localhost:9983,localhost:8574,localhost:9900 -jar start.jar > solr.log & 
-cd ../example2B
-java -Djetty.port=7500 -DzkHost=localhost:9983,localhost:8574,localhost:9900 -jar start.jar > solr.log & 
\ No newline at end of file
+#/bin/bash
+
+DIR=`dirname $0`
+PROG=`basename $0`
+
+cd $DIR
+OPTIONS="-Djetty.port=7500 -DzkHost=opencontent-solr.index:9983"
+if [ -f "options" ]; then 
+    source options
+else
+    echo "No options file. Using defaults: $OPTIONS"
+fi
+
+if [ "$1" = "start" ]; then 
+    if [ -f "${PROG}.pid" ] ; then 
+       echo "Pid file ${DIR}/${PROG}.pid exists. Already running?"
+       exit 1
+    fi
+    java $OPTIONS  -jar start.jar > solr.log & 
+    echo $$ > ${PROG}.pid
+elif [ "$1" = "stop" ]; then 
+    if [ -x "${PROG}.pid" ] ; then 
+       kill `echo ${PROG}.pid`
+       rm ${PROG}.pid
+    fi
+else
+       echo "$0 [start|stop]" 
+fi