Compare commits
2 commits
1767c7b316
...
cef13f0b31
Author | SHA1 | Date | |
---|---|---|---|
cef13f0b31 | |||
28ce41dedc |
2 changed files with 3 additions and 3 deletions
|
@ -367,9 +367,9 @@ class SearchService {
|
|||
$weight_perc = ($filters->weight / $this->max_weight) * 100;
|
||||
if ($weight_perc > 85) {
|
||||
/// 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 {
|
||||
$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 = [];
|
||||
|
|
|
@ -1858,7 +1858,7 @@
|
|||
|
||||
// Maximum weigth of the search query.
|
||||
// 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.
|
||||
// Characters beyond the limit are truncated and ignored.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue