From 3b76133214c2f00a462f094459bf07934bf4bb44 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Fri, 23 Jul 2010 12:40:50 +0200 Subject: [PATCH] Client requesting termlist/facets --- perf/bash/client_termlist.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 perf/bash/client_termlist.sh diff --git a/perf/bash/client_termlist.sh b/perf/bash/client_termlist.sh new file mode 100755 index 0000000..43b9196 --- /dev/null +++ b/perf/bash/client_termlist.sh @@ -0,0 +1,26 @@ +#!/bin/bash +OF=$1 +if test -z "$OF"; then + OF=1 +fi + +PORT=$2 +if test -z "$PORT"; then + PORT=9004 +fi +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` +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=termlist&session=$S&sort=relevance&start=0&num=100&block=1" +wget -q -O $OF.termlist.xml "$H?command=termlist&name=xtargets%2Csubject%2Cauthor&session=$S" -- 1.7.10.4