mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
implement reindex by request feature
This commit is contained in:
parent
cf6c50a96f
commit
fef2b1abec
6 changed files with 89 additions and 14 deletions
|
|
@ -87,6 +87,7 @@ if ($config->cli->document->crawl->debug->level->notice)
|
|||
|
||||
foreach($index->search('')
|
||||
->expression('random', 'rand()')
|
||||
->sort('reindex', 'desc')
|
||||
->sort('time', 'asc')
|
||||
->sort('rank', 'asc')
|
||||
->sort('random', 'asc')
|
||||
|
|
@ -106,7 +107,8 @@ foreach($index->search('')
|
|||
'size' => $document->get('size'),
|
||||
'mime' => $document->get('mime'),
|
||||
'rank' => $document->get('rank'),
|
||||
'time' => $time
|
||||
'time' => $time,
|
||||
'reindex' => 0
|
||||
];
|
||||
|
||||
// Debug target
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue