Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

update to search tests (use yacy interface and a bugfix)

Michael Peter Christena6ad1d6fd1d0
diff --git a/bin/search.sh b/bin/search.sh
index aa74583a2..5f68dfbb5 100755
--- a/bin/search.sh
+++ b/bin/search.sh
@@ -1,4 +1,4 @@
#!/bin/bash
cd "`dirname $0`"
port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
-./search1.sh -s localhost:$port '"$1"'
\ No newline at end of file
+./search1.sh -y localhost:$port "$1"
\ No newline at end of file
diff --git a/bin/searchtest.sh b/bin/searchtest.sh
index 3a40ed6bf..eea86e7d6 100755
--- a/bin/searchtest.sh
+++ b/bin/searchtest.sh
@@ -4,9 +4,10 @@ S=`date "+%s"`
C=0
for N in `cat $1`; do
echo search for $N:
- ./localsearch.sh $N > /dev/null
+ ./search.sh $N | head -1
C=$(($C+1))
+ T=`date "+%s"`
+ echo runtime = $(($T-$S)) seconds, count = $C, time per query = $((1000*($T-$S)/$C)) milliseconds
#sleep 1
done
-T=`date "+%s"`
-echo runtime = $(($T-$S)) seconds, count = $C, time per query = $((1000*($T-$S)/$C)) milliseconds
+