Bug #103606
openNo search results due to empty rootPidList & Site Sets
0%
Description
https://github.com/TYPO3/typo3/blob/main/typo3/sysext/indexed_search/Classes/Controller/SearchController.php#L147-L155¶
The source location above contains a hint concerning the rl0
field, that is used and filled during the indexing process, based on sys_template
records having the root
flag set (which is not the case anymore when using Sets
).
https://github.com/TYPO3/typo3/blob/main/typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php#L722-L726¶
The source location above adds a constraint like rl0 IN ('0')
(also due to "magic" type-casts of configuration property rootPidList
) - which results in not showing any results (even if data has been indexed).
https://github.com/TYPO3/typo3/blob/main/typo3/sysext/indexed_search/Classes/Indexer.php#L1424¶
The source location above actually sets & persists the rl0
value during the indexing process, based on sys_template
records having the root
flag set (which is not the case anymore when using Sets
).
Updated by Riccardo De Contardi 6 months ago
- Related to Bug #84919: Indexed-Search - Configuration added
Updated by Benjamin Franzke 3 months ago
- Status changed from New to Needs Feedback
Hi, can you still reproduce this in latest main? (I suppose this one used your surfcamp site?)
It works for me with EXT:styleguide and I can not find code that actually tries to read/parse sys_template – it seems to use the rootline which is properly generated with site sets.
I assume this can be closed, but the comments like the following seems to be very old and probably not true anymore
// Setting the list of root PIDs for the search. Notice, these page IDs MUST // have a TypoScript with root flag on them! Basically this list is used // to select on the "rl0" field and page ids are registered as "rl0" only if // a TypoScript record with root flag is there.