|
@@ -147,7 +147,7 @@ discard block |
|
|
block discarded – undo |
|
147
|
147
|
*/ |
|
148
|
148
|
protected function getSolrSuggestions(SuggestQuery $suggestQuery) : array |
|
149
|
149
|
{ |
|
150
|
|
- $pageId = $this->tsfe->getRequestedId(); |
|
|
150
|
+ $pageId = $this->tsfe->getRequestedId(); |
|
151
|
151
|
$languageId = $this->tsfe->sys_language_uid; |
|
152
|
152
|
$solr = GeneralUtility::makeInstance(ConnectionManager::class)->getConnectionByPageId($pageId, $languageId); |
|
153
|
153
|
$search = GeneralUtility::makeInstance(Search::class, $solr); |
|
@@ -257,7 +257,7 @@ discard block |
|
|
block discarded – undo |
|
257
|
257
|
* @param string $additionalFilters |
|
258
|
258
|
* @return SuggestQuery |
|
259
|
259
|
*/ |
|
260
|
|
- protected function buildSuggestQuery(string $queryString , string $additionalFilters) : SuggestQuery |
|
|
260
|
+ protected function buildSuggestQuery(string $queryString, string $additionalFilters) : SuggestQuery |
|
261
|
261
|
{ |
|
262
|
262
|
$suggestQuery = GeneralUtility::makeInstance(SuggestQuery::class, $queryString); |
|
263
|
263
|
|
Please login to merge, or discard this patch.