Compare commits

...

2 commits

2 changed files with 3 additions and 3 deletions

View file

@ -367,9 +367,9 @@ class SearchService {
$weight_perc = ($filters->weight / $this->max_weight) * 100; $weight_perc = ($filters->weight / $this->max_weight) * 100;
if ($weight_perc > 85) { if ($weight_perc > 85) {
/// Over 85 of the weight. /// Over 85 of the weight.
$this->log->log(LogDriver::NOTICE, "$ip search: weight $weight_perc ({$filters->weight}) query '$raw_query'"); $this->log->log(LogDriver::NOTICE, "$ip search: weight {$weight_perc}% ({$filters->weight}) query '$raw_query'");
} else { } else {
$this->log->log(LogDriver::INFO, "$ip search: weight $weight_perc ({$filters->weight}) query '$raw_query'"); $this->log->log(LogDriver::INFO, "$ip search: weight {$weight_perc}% ({$filters->weight}) query '$raw_query'");
} }
$flags = []; $flags = [];

View file

@ -1858,7 +1858,7 @@
// Maximum weigth of the search query. // Maximum weigth of the search query.
// Body search filters are discarded if they make the query heavier than this. // Body search filters are discarded if they make the query heavier than this.
$config['search']['max_weight'] = 80; $config['search']['max_weight'] = 100;
// Maximum length of the user sent search query. // Maximum length of the user sent search query.
// Characters beyond the limit are truncated and ignored. // Characters beyond the limit are truncated and ignored.