calculate initial rank

This commit is contained in:
ghost 2024-01-22 23:03:33 +02:00
parent 50dc9d315a
commit ff8461835d

View File

@ -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
);