You can do it per view, but not per app (as far as i'm aware)
This will add the equivalent of "NOT source=apache_log" to the beginning of all searches.
<module name="HiddenIntention"> <param name="intention"> <param name="name">negateterm</param> <param name="arg"> <param name="source">apache_log</param> </param> <param name="flags"><list>indexed</list></param> </param>
One thing you need to be careful of is users bypassing this by just typeing the query in the url
i.e. https://localhost/en-GB/myapp/search/?q=search source=apache_log.
Putting this above your SumbitButton prevents that :
You can also set a prefix search based on roles : If you go to :
Manager » Access controls » Roles » your_role
There's an option to enter a restiction term applied to all searches.
You wrap it around any searches you want to be modified by your intention. (Don't forget to close the
Also, HiddenIntention might not be valid as a root module, wrap it in a GenericHeader to test