Skip to content

Commit

Permalink
FIX Solr communication error
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jul 18, 2022
1 parent 46ec60a commit 9c1fedc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
"php": "^7.3 || ^8.0",
"silverstripe/framework": "^4.10",
"cwp/cwp": "^2",
"silverstripe/fulltextsearch": "^3"
"silverstripe/fulltextsearch": "^3.3"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3"
},
"conflict": {
"silverstripe/auditor": "<2.2.1"
},
"autoload": {
"psr-4": {
"CWP\\Search\\": "src/",
Expand Down
3 changes: 2 additions & 1 deletion src/Solr/CwpSolr.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ class CwpSolr
*/
public static function configure()
{

if (!class_exists(Solr::class)) {
return;
}

// get options from configuration
$options = static::config()->get('options');

// get version specific options
switch ($options['version']) {
case 'cwp-4':
Expand Down

0 comments on commit 9c1fedc

Please sign in to comment.