Browse Source

eliminate bestbet content from general searches

d9
ppound 3 years ago
parent
commit
752fbaaa04
  1. 2
      modules/solr_site/src/Controller/RoblibSearchSolrsiteController.php

2
modules/solr_site/src/Controller/RoblibSearchSolrsiteController.php

@ -66,6 +66,8 @@ class RoblibSearchSolrsiteController extends ControllerBase {
$query->keys($queryString); $query->keys($queryString);
if ($solr_type == 'BestBet') { if ($solr_type == 'BestBet') {
$query->addCondition('type', 'bestbet'); $query->addCondition('type', 'bestbet');
} else {
$query->addCondition('type', 'bestbet', '<>');
} }
// $query->setFulltextFields(['rendered_item', 'title', 'body']); // $query->setFulltextFields(['rendered_item', 'title', 'body']);

Loading…
Cancel
Save