mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
disable ranked pages index first
This commit is contained in:
parent
0872e66e15
commit
686479e7f1
1 changed files with 1 additions and 12 deletions
|
|
@ -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
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue