mirror of
https://github.com/YGGverse/Yo.git
synced 2025-01-27 23:14:16 +00:00
add random expression
This commit is contained in:
parent
be7c63e68a
commit
3f1d19ad18
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user