The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 5299c790 authored by Demian Katz's avatar Demian Katz
Browse files

Fixed bug: hl.q was never getting set.

parent 6d2be7a7
No related merge requests found
......@@ -123,14 +123,10 @@ class QueryBuilder implements QueryBuilderInterface
if ($this->containsAdvancedLuceneSyntax($string)) {
if ($handler) {
if ($params->get('hl')
&& array_intersect($params->get('hl'), array('true', 'on'))
) {
$params->set(
'hl.q',
$this->createAdvancedInnerSearchString($string, $handler)
);
}
$params->set(
'hl.q',
$this->createAdvancedInnerSearchString($string, $handler)
);
$string = $this->createAdvancedInnerSearchString($string, $handler);
if ($handler->hasDismax()) {
$string = $handler->createBoostQueryString($string);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment