Skip to content

Commit 88a2c48

Browse files
committed
TASK: Re-add a check for the elasticsearch package to the suggest controller
1 parent d0cda09 commit 88a2c48

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Classes/Controller/SuggestController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ public function initializeObject()
6262
*/
6363
public function indexAction($contextNodeIdentifier, $dimensionCombination, $term)
6464
{
65+
if ($this->elasticSearchClient === null) {
66+
throw new \RuntimeException('The SuggestController needs an ElasticSearchClient, it seems you run without the flowpack/elasticsearch-contentrepositoryadaptor package, though.', 1487189823);
67+
}
68+
6569
$result = [
6670
'completions' => [],
6771
'suggestions' => []

0 commit comments

Comments
 (0)