Item12825: NOSEARCHALL not working
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: SEARCH
Branches:
I have very rarely used the
NOSEARCHALL
web preference but recently a client requested to hide all non-local content (specifically the System web) from search results. I set NOSEARCHALL in
WebPreferences to
on
and figured that would take care of it. It didn't. In searches with web parameter set to
all
, topics from the System web were still included in results, even for
WikiGuest.
I've done a little test in the sandbox that
demonstrates the issue.
As stated in the Docs (
here and
here), in most cases it's much better to use access control to exclude webs from searches, however the feature is still listed in every WebPreference topic. Also, in the use case I mention above, it would probably create all manner of problems restricting view access to the System web.
--
LynnwoodBrown - 27 Mar 2014
This is fixed on trunk.
Note that Community/Finance is visible because
WebPreferences finalizes NOSEARCHALL, preventing it from being applied. I removed the Final from
WebPreferences, grabbed a new copy for the cache, and it works fine.
See
http://trunk.foswiki.org/Sandbox/TestNoSearchOn?refresh=cache
Note that NOSEARCHALL is ignored for Admins. ... Changing my take on this. This is probably No Action. Please review. Now that the FINAL is resolved I can't recreate on either trunk or 1.1.9.
The
WikiGuest was able to view Community/Finance only because of the FINAL setting in Community. So that's fixed, and no webs are shown to
WikiGuest. Just to make sure, I added NOSEARCHALL = on to the Book web, and it also is omitted, even on 1.1.9 for
WikiGuest
George
Looks good. Changing to No Action.
--
LynnwoodBrown - 30 Dec 2014