mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-23 14:06:18 +00:00
Lower domain search length
When searching for "bbc" I got no result .. sigh.
This commit is contained in:
parent
d2fcbf5d84
commit
1137fae94d
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class EntryFilterType extends AbstractType
|
||||||
->add('domainName', 'filter_text', array(
|
->add('domainName', 'filter_text', array(
|
||||||
'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
|
'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
|
||||||
$value = $values['value'];
|
$value = $values['value'];
|
||||||
if (strlen($value) <= 3 || empty($value)) {
|
if (strlen($value) <= 2 || empty($value)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$expression = $filterQuery->getExpr()->like($field, $filterQuery->getExpr()->literal('%'.$value.'%'));
|
$expression = $filterQuery->getExpr()->like($field, $filterQuery->getExpr()->literal('%'.$value.'%'));
|
||||||
|
|
Loading…
Reference in a new issue