Actions
Bug #52277
closedEpic #65814: Make Indexed search extbase plugin shine
indexed_search experimental mode returns no search results
Start date:
2013-09-25
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
When using the experimental extbase version of indexed_search a bug appears on line 173 in class "MysqlFulltextIndexHook" in "/indexed_search/classes/hook/MysqlFulltextIndexHook".
171 } elseif ($this->pObj->wholeSiteIdList >= 0) { 172 // Collecting all pages IDs in which to search; filtering out ALL pages that are not accessible due to enableFields. Does NOT look for "no_search" field! 173 $siteIdNumbers = \TYPO3\CMS\Core\Utility\GeneralUtility::intExplode(',', $this->pObj->wholeSiteIdList); 174 $idList = array(); 175 foreach ($siteIdNumbers as $rootId) { 176 $cObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer'); 177 /** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $cObj */ 178 $idList[] = $cObj->getTreeList($rootId, 9999, 0, 0, '', '') . $rootId; 179 } 180 $pageWhere = ' ISEC.page_id IN (' . implode(',', $idList) . ')'; 181 }
$this->pObj->wholeSiteIdList on line 171 is null in this case as it is never defined in SearchController.php which is the controller used in experimental mode. This means that $idList in $pageWhere contains no page ids and no results are returned.
In addition It appears that several properties and/or methods called in MysqlFulltextIndexHook via $this->pObj are not set, however so far only the aforementioned leads to errors.
I checked Typo3 v 6.2 and it appears to be the same there.
Actions