add random expression

This commit is contained in:
yggverse 2024-03-21 19:00:38 +02:00
parent be7c63e68a
commit 3f1d19ad18

View File

@ -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)