--- trunk/scripts/est-spider 2006/04/17 10:31:11 119 +++ trunk/scripts/est-spider 2006/08/15 16:38:06 178 @@ -89,6 +89,11 @@ my $dur = (time() - $start_t) || 1; printf STDERR "%d documents in %.2fs [%.2f docs/s]\n", $docs, $dur, ($docs / $dur); +$db->master( + action => 'sync' +); + + exit; sub dump_contents { @@ -136,7 +141,7 @@ # boost title $doc->add_hidden_text($title); - print $doc->dump_draft if ($verbose); + print $doc->dump_draft if ($debug); # register the document object to the database $db->put_doc($doc); @@ -195,6 +200,7 @@ my $contents; return if (! $force && -l $path || $path =~ m#/.svn# || $path =~ m/(~|.bak|.gif)$/); + return if (! $all && -d $path); my $mtime = (stat($path))[9] || -1; my $mtime_db = eval { $db->get_doc_attr_by_uri("file:///$path", '@mtime') };