|
|
@ -67,6 +67,11 @@ class RoblibSearchSolrsiteController extends ControllerBase { |
|
|
|
if ($solr_type == 'BestBet') { |
|
|
|
if ($solr_type == 'BestBet') { |
|
|
|
$query->addCondition('type', 'bestbet', '='); |
|
|
|
$query->addCondition('type', 'bestbet', '='); |
|
|
|
$query->setFulltextFields(['title_1']); |
|
|
|
$query->setFulltextFields(['title_1']); |
|
|
|
|
|
|
|
if(str_starts_with($queryString, '"')) { |
|
|
|
|
|
|
|
$query->keys($queryString); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
$query->keys('"'.$queryString.'"'); |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$query->addCondition('type', 'bestbet', '<>'); |
|
|
|
$query->addCondition('type', 'bestbet', '<>'); |
|
|
|
} |
|
|
|
} |
|
|
|