diff --git a/src/cli/document/clean.php b/src/cli/document/clean.php index d76c347..580333f 100644 --- a/src/cli/document/clean.php +++ b/src/cli/document/clean.php @@ -87,6 +87,12 @@ foreach ($config->cli->document->crawl->skip->stripos->url as $condition) $condition ) ) + )->expression( + 'random', + 'rand()' + )->sort( + 'random', + 'asc' )->limit( isset($argv[1]) ? (int) $argv[1] : 10 )->get() as $document)