I used fedora-purge.sh with a shell script
 
startpid=$1
endpid=$2
host=$3
user=$4
password=$5
msg=$6
stoppid=$(( endpid + 1 ))
 
 nextpid=$startpid
 while(( $nextpid < $stoppid ))
  do
    $FEDORA_HOME/client/bin/fedora-purge.sh $host $user $password
york:$nextpid
http $msg 2>/dev/null
  (( nextpid += 1 ))
 done
echo "\n all done"

 

Cheers
Peri Stracchino
Digital Library Team
University of York
ext 4082 

 

  _____  

From: Matteo Boschini [mailto:matteo.bosch...@gmail.com] 
Sent: 28 September 2009 15:32
To: fedora-commons-users@lists.sourceforge.net
Subject: [Fedora-commons-users] naive question about gsearch delete


Hi all, 

in gsearch, updateIndex deletePID does delete only the Object identified by
PID from the index or does actually purge the OBJECT from the repository ?
If it does not delete the object from the repository, is there in fedora a
"bulk/batch purge", equivalent to batch ingest ?

I'ma asking since 0) I'm pretty new to fedora 1)I really like the REST
interface to gsearch, which I'm using to do full text searches from a
stupid perl script. 2) I'm trying to do a bulk delete and thought  that
using  updateIndex delete PID might do my job....
Is there a smarter way to do bulk purges ? from scripting languages possibly
....

already thanking you all....

matteo

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to