mirror of
https://github.com/YGGverse/Yo.git
synced 2025-01-27 23:14:16 +00:00
calculate initial rank
This commit is contained in:
parent
50dc9d315a
commit
ff8461835d
@ -82,7 +82,15 @@ if ($config->webui->search->index->request->url->enabled && filter_var($q, FILTE
|
||||
|
||||
$index->addDocument(
|
||||
[
|
||||
'url' => $url
|
||||
'url' => $url,
|
||||
'rank' => (int) mb_strlen(
|
||||
urldecode(
|
||||
parse_url(
|
||||
$url,
|
||||
PHP_URL_PATH
|
||||
)
|
||||
)
|
||||
)
|
||||
],
|
||||
$crc32url
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user