Bug #52277
closedEpic #65814: Make Indexed search extbase plugin shine
indexed_search experimental mode returns no search results
100%
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.
Updated by Gerrit Code Review almost 10 years ago
- Status changed from New to Under Review
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38130
Updated by Gerrit Code Review almost 10 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38743
Updated by Gerrit Code Review almost 10 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38744
Updated by Tymoteusz Motylewski almost 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset cff3ddc2e3eaea107b525e85cebc59414ecadbc9.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed