X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=inline;f=heikki%2Fdbc-os%2Ftest2.sh;h=86532e732b3266b518715d3f4a2c1b1fb85db111;hb=refs%2Fheads%2Franking-h;hp=f187620aaf9298c34da2ca6d3c9eccff98495c00;hpb=533ff0b399b62625ddd68e1a59cb34ef70795bf9;p=pazpar2-moved-to-github.git diff --git a/heikki/dbc-os/test2.sh b/heikki/dbc-os/test2.sh index f187620..86532e7 100755 --- a/heikki/dbc-os/test2.sh +++ b/heikki/dbc-os/test2.sh @@ -27,7 +27,7 @@ fi PIDFILE=pz2.pid # Start the gateway. - ./dbc-opensearch-gw.pl -1 \ + ../../../dbc-opensearch-gw/dbc-opensearch-gw.pl -1 \ -c dbc-opensearch-gw.cfg \ -l dbc-opensearch-gw.log \ @:9994 & @@ -51,7 +51,7 @@ else fi QRY=`echo $Q | sed 's/ /+/g' ` -SORT="sort=score" +SORT="sort=relevance_h" #SEARCH="command=search$SES&$QRY&rank=1&sort=relevance" #SEARCH="command=search$SES&$QRY" #SEARCH="command=search$SES&query=$QRY&sort=relevance" @@ -98,6 +98,22 @@ grep "round-robin" show.out | sed 's/[^0-9 ]//g' | awk '{print FNR,$0}'> $DF.data +grep mergeplot show.out > merge.tmp +LINENUMBER="1" +LAST="" +echo "0 0 0" > merge.data +for lno in `cat merge.tmp | cut -d ' ' -f2` +do + if [ "$lno" != "$LAST" ] + then + echo "Found line $lno at $LINENUMBER" + grep "mergeplot $lno " merge.tmp | sed "s/mergeplot/$LINENUMBER/" >> merge.data + LAST=$lno + LINENUMBER=$(($LINENUMBER + 1)) + fi +done +echo "$LINENUMBER 0 0 0" >> merge.data + echo '\ @@ -115,6 +131,20 @@ echo "0 notitle" >> plot.cmd gnuplot < plot.cmd + +echo " + set term png + set out \"cluster.png\" + set title \"$Q\" + #set yrange [0:5000] + plot \"merge.data\" using 1:3 with points title \"records\", \ + \"merge.data\" using 1:6 with points title \"avg score\" +" > plot.cmd +cat plot.cmd | gnuplot + + #\"merge.data\" using 1:4 with points title \"merged score\", \ + #\"merge.data\" using 1:5 with points title \"sum score\", \ + echo echo "All done"