I'm using TYPO3 11.5.27 and the indexed_search extension.
Is it possible to limit the search to only a page and relative subpages?
I'm using TYPO3 11.5.27 and the indexed_search extension.
Is it possible to limit the search to only a page and relative subpages?
On
In the documentation of ext:indexed_search there is a hint at the setting rootPidList:
By "root page" we mean a website root defined by a TypoScript template!
If you just want to search in branches of your site,
use the possibility of searching in levels.
As I understand you should use the settings displayLevel1Sections, displayLevel2Sections and displayLevelxAllSections to iterate level to level to the start of the branch you want search results from.
Probably you can preset these values in POST parameters to start your search in a page branch starting with a page at a higher level than the web root.
In the settings of each page there is the toggle "Include in Search" in the "Behaviour" tab. There you can switch indexing off or on for every page.
I'm not aware of a recursive function to do so for an entire subtree.
What you could do (but please with caution!):
UPDATE pages SET no_search = 1;After that you need to fill the search index again.
For pages that will be created in the future you can turn off indexing by default with this TSConfig:
TCAdefaults.pages.no_search = 1If you need a newly created page in the index, you need to switch indexing on manually for that page.