Search exclusion problems

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
clefty
New Member
New Member
Posts: 8
Joined: Tue Jul 24, 2007 8:55 am

Search exclusion problems

Post by clefty »

I have a problem that's been bugging me for several days.

I'm trying to exclude content that's protected by FrontEndUsers/CustomContent from being returned using the core Search module.

The content I want excluded is the summary from the Uploads module.

The summary is using the minimal template, and I've added:

Code: Select all

<!-- pageAttribute: NotSearchable -->
to the template.

The uploads listing is still indexed and returned by the search.

The summary page is set to not cacheable, I've manually cleared the cache and done a search reindex - still the page gets searched.

I then tried adding the modules='news,cataloger' parameter to the {search} tag to keep the search out of the upload modules and now nothing is returned for any query!

Can anybody shed any light on this - going nuts here!!

Versions: CMS 1.1, Search 1.3, Uploads 1.3.0-beta3, FrontEndUsers 1.2.0, CustomContent 1.4.6
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Search exclusion problems

Post by KO »

You might have allready solved your problem but I believe that "Not searchable" code needs to go to actuall page content. If you put it on template it won't work unfortunately :(. Search module won't go to look if there is some content on template used by that page. I could be wrong but I believe this is how it works.

I would like to see this also more convenient for editors who are not able to do this much. I think there should be option on "page options" that is stored in database and checked by search module that can that page be searched.

br, K
Post Reply

Return to “CMSMS Core”