X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=perf%2Fbash%2Fclient.sh;h=ecf2e6f847cbde7b41a94042b710748c60a79d06;hb=10b6ba56881c1f77790e4ece7210ddc2cd87c834;hp=9f1c4c0a91057ebdc04213002ef5aea9bdfea0a7;hpb=a017945cddcdad88625e28a505f2e6024e53f7cf;p=pazpar2-moved-to-github.git diff --git a/perf/bash/client.sh b/perf/bash/client.sh index 9f1c4c0..ecf2e6f 100755 --- a/perf/bash/client.sh +++ b/perf/bash/client.sh @@ -12,11 +12,14 @@ SERVICE=$3 if test -z "$SERVICE"; then SERVICE=perf fi - - +SETTINGS=$4 +WHAT=water H="http://localhost:${PORT}/search.pz2" wget -q -O $OF.init.xml "$H/?command=init&service=${SERVICE}&extra=$OF" S=`xsltproc get_session.xsl $OF.init.xml` -wget -q -O $OF.search.xml "$H?command=search&query=100&session=$S" +if [ "$SETTINGS" != "" ] ; then + wget -q -O $OF.settings.xml "$H?command=settings&session=$S&$SETTINGS" +fi +wget -q -O $OF.search.xml "$H?command=search&query=$WHAT&session=$S" sleep 1 -wget -q -O $OF.show.xml "$H?command=show&session=$S&num=100&block=1" +wget -q -O $OF.show.xml "$H?command=show&session=$S&sort=relevance&start=0&num=100&block=1"