Right now if an item (page, category, link, article, etc.) is entered in the database, then built-in search engine will find it. In some cases this behavior isn't desired one (e.g. some secret page, that can only be accessed with a direct link).
- add the "IncludeInSearch" checkbox (checked by default) to categories & category items
- in the "OnSimpleSearch" event take the value of above checkbox into account
- when during automatic theme scan red folders are created (categories, that were specified in meta comment of found templates) then don't include them in search by default
- as part of upgrade script exclude red folders from search
Code for dealing with red folders can be taken from related discussion implementation.