You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yacy_search_server/bin/searchall1.sh

14 lines
357 B

#!/usr/bin/env sh
# Perform a search on the Solr index of each active principal and senior peers known by the given peer
# $1 a peer address as host:port
# $2 search term
TMPFILE=`mktemp -t searchXXX` || exit 1
for address in `./up.sh $1`;
do
sleep 0.01
./search1.sh -s `printf "$address" | tr -d '\r\n'` "$2" >> "$TMPFILE" &
done
sleep 2
cat $TMPFILE