mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
made text match bucketing configurable
This commit is contained in:
parent
466dcac516
commit
0ac49539ba
@ -141,7 +141,7 @@ class TypeSenseScoutSearchService implements ScoutSearchService
|
|||||||
|
|
||||||
// override ordering field
|
// override ordering field
|
||||||
if (!is_null($orderByField) && in_array($orderByField, $modelAttrNames)) {
|
if (!is_null($orderByField) && in_array($orderByField, $modelAttrNames)) {
|
||||||
$options['sort_by'] = "$orderByField:" . ($sortDirectionDescending ? "desc" : "asc") . ",_text_match(buckets:".$this->maxItemsPerPage."):desc";
|
$options['sort_by'] = "$orderByField:" . ($sortDirectionDescending ? "desc" : "asc") . ",_text_match(buckets:".$this->jikanConfig->textMatchBuckets()."):desc";
|
||||||
}
|
}
|
||||||
|
|
||||||
// override overall sorting direction
|
// override overall sorting direction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user