mirror of
https://github.com/YGGverse/Yo.git
synced 2026-04-02 10:45:29 +00:00
calculate initial rank
This commit is contained in:
parent
50dc9d315a
commit
ff8461835d
1 changed files with 9 additions and 1 deletions
|
|
@ -82,7 +82,15 @@ if ($config->webui->search->index->request->url->enabled && filter_var($q, FILTE
|
||||||
|
|
||||||
$index->addDocument(
|
$index->addDocument(
|
||||||
[
|
[
|
||||||
'url' => $url
|
'url' => $url,
|
||||||
|
'rank' => (int) mb_strlen(
|
||||||
|
urldecode(
|
||||||
|
parse_url(
|
||||||
|
$url,
|
||||||
|
PHP_URL_PATH
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
],
|
],
|
||||||
$crc32url
|
$crc32url
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue