This commit is contained in:
James Cole
2020-11-29 07:07:08 +01:00
parent b38e7cbb1a
commit 1ad5f5c759
3 changed files with 2 additions and 11 deletions

View File

@@ -69,7 +69,6 @@ class SearchController extends Controller
$ruleId = (int) $request->get('rule');
$rule = null;
$ruleChanged = false;
$longQueryWarning = false;
// find rule, check if query is different, offer to update.
$ruleRepository = app(RuleRepositoryInterface::class);
@@ -80,9 +79,6 @@ class SearchController extends Controller
$ruleChanged = true;
}
}
if (strlen($fullQuery) > 250) {
$longQueryWarning = true;
}
// parse search terms:
$searcher->parseQuery($fullQuery);
@@ -92,7 +88,7 @@ class SearchController extends Controller
$subTitle = (string) trans('breadcrumbs.search_result', ['query' => $fullQuery]);
return view('search.index', compact('query', 'longQueryWarning', 'operators', 'page', 'rule', 'fullQuery', 'subTitle', 'ruleId', 'ruleChanged'));
return view('search.index', compact('query', 'operators', 'page', 'rule', 'fullQuery', 'subTitle', 'ruleId', 'ruleChanged'));
}
/**