|
|
@ -114,7 +114,6 @@ foreach($index->search('') |
|
|
|
->expression('random', 'rand()') |
|
|
|
->expression('random', 'rand()') |
|
|
|
->sort('index', 'desc') |
|
|
|
->sort('index', 'desc') |
|
|
|
->sort('time', 'asc') |
|
|
|
->sort('time', 'asc') |
|
|
|
->sort('rank', 'asc') |
|
|
|
|
|
|
|
->sort('random', 'asc') |
|
|
|
->sort('random', 'asc') |
|
|
|
->limit($config->cli->document->crawl->queue->limit) |
|
|
|
->limit($config->cli->document->crawl->queue->limit) |
|
|
|
->get() as $document) |
|
|
|
->get() as $document) |
|
|
@ -564,17 +563,7 @@ foreach($index->search('') |
|
|
|
|
|
|
|
|
|
|
|
$index->addDocument( |
|
|
|
$index->addDocument( |
|
|
|
[ |
|
|
|
[ |
|
|
|
'url' => $url, |
|
|
|
'url' => $url |
|
|
|
'rank' => (int) mb_strlen( |
|
|
|
|
|
|
|
(string) |
|
|
|
|
|
|
|
urldecode( |
|
|
|
|
|
|
|
(string) |
|
|
|
|
|
|
|
parse_url( |
|
|
|
|
|
|
|
$url, |
|
|
|
|
|
|
|
PHP_URL_PATH |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
$crc32url |
|
|
|
$crc32url |
|
|
|
); |
|
|
|
); |
|
|
|