[greenstone-users] Incremental collection building

From Diego Spano
DateThu Jan 31 01:53:30 2008
Subject [greenstone-users] Incremental collection building
In-Reply-To (194607-58891-qm-web25812-mail-ukl-yahoo-com)
Bertrand,
are you using Lucene as your default indexer?


Regards

Diego Spano

_____

De: greenstone-users-bounces@list.scms.waikato.ac.nz
[mailto:greenstone-users-bounces@list.scms.waikato.ac.nz] En nombre de
Bertrand SODJAHIN
Enviado el: Miā–”rcoles, 30 de Enero de 2008 09:39 a.m.
Para: Greenstone WAIKATO
Asunto: [greenstone-users] Incremental collection building


Hi every body !
I have a problem while building my collection incrementaly through a PHP
script.
Here is the script :

function collectionRebuilding($tab_collection) {
if (count($tab_collection)>=1) {
foreach($tab_collection as $key => $value) {
echo shell_exec('cd /home/www/vi/greenstone/gsdl ; source
setup.bash ; import.pl -incremental '.$value.' ; ');
echo shell_exec('cd /home/www/vi/greenstone/gsdl ; source
setup.bash ; buildcol.pl -incremental -builddir building '.$value.' ;');
} return true;
}else {
echo "NO COLLECTION TO BUILD";
return false;
}
}
But it never do it !

If I do a complete building which takes too much time it's works. Here is
the correspondind script

function collectionRebuilding($tab_collection) {
if (count($tab_collection)>=1) {
foreach($tab_collection as $key => $value) {
shell_exec('cd /home/www/vi/greenstone/gsdl ; source setup.bash
; import.pl -removeold '.$value.' ; ');
shell_exec('cd /home/www/vi/greenstone/gsdl ; source setup.bash
; buildcol.pl -removeold '.$value.' ;');
echo shell_exec('cd
/home/www/vi/greenstone/gsdl/collect/'.$value.' ; rm -fr index/* ; mv
building/* index ; ');
}

return true;
}else {
echo "NO COLLECTION TO BUILD";
return false;
}

}

Some body can help finding why it's not working for the incremental option ?
THANKS

_____

Ne gardez plus qu'une seule adresse mail ! Copiez
<http://fr.rd.yahoo.com/mail/mail_taglines/trueswitch/*http://www.trueswitch
.com/yahoo-fr/> vos mails vers Yahoo! Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://list.scms.waikato.ac.nz/mailman/private/greenstone-users/attachments/20080130/ee69a567/attachment.html