Browse Source

added composer json file

2.x
ppound 2 years ago
parent
commit
59b5d8657d
  1. 27
      composer.json
  2. 3
      modules/solr_site/README.md
  3. 2
      modules/solr_site/src/Controller/RoblibSearchSolrsiteController.php

27
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"
}
}

3
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

2
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', '<>');
}

Loading…
Cancel
Save