diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..4272639 --- /dev/null +++ b/composer.json @@ -0,0 +1,27 @@ +{ + "name": "roblib/roblib_search", + "description": "Searches various enpoints and displays results from each endpoint.", + "type": "drupal-module", + "license": "GPL-2.0-or-later", + "homepage": "https://git.library.upei.ca/Code/upei_roblib_search", + "authors": [ + { + "name": "Paul Pound", + "role": "Maintainer" + } + ], + "support": { + "issues": "https://git.library.upei.ca/Code/upei_roblib_search/issues", + "source": "https://git.library.upei.ca/Code/upei_roblib_search" + }, + "repositories": [ + { + "type": "git", + "url": "git@git.library.upei.ca:Code/upei_roblib_search.git", + "reference": "2.x" + } + ], + "require": { + "drupal/core": "^9" + } +} diff --git a/modules/solr_site/README.md b/modules/solr_site/README.md index 44cee66..074932b 100644 --- a/modules/solr_site/README.md +++ b/modules/solr_site/README.md @@ -18,6 +18,9 @@ Requires roblib_search module. Also assumes Solr Search API is installed and the index has fields for body, body summary, type, rendered_item and search_api_url +For the BestBet block we also need a content type of bestbet with title, body +link fields (field_link). The field_link will also have to be added to the +solr index. ## Configuration diff --git a/modules/solr_site/src/Controller/RoblibSearchSolrsiteController.php b/modules/solr_site/src/Controller/RoblibSearchSolrsiteController.php index c719c2d..369b8ea 100644 --- a/modules/solr_site/src/Controller/RoblibSearchSolrsiteController.php +++ b/modules/solr_site/src/Controller/RoblibSearchSolrsiteController.php @@ -65,7 +65,7 @@ class RoblibSearchSolrsiteController extends ControllerBase { $query->keys($queryString); if ($solr_type == 'BestBet') { - $query->addCondition('type', 'bestbet'); + $query->addCondition('type', 'bestbet', '='); } else { $query->addCondition('type', 'bestbet', '<>'); }