This results that this filter is added in the search “-(wiki:xwiki AND space_exact:IT AND name_exact:Obsoleta\ artiklar)” which does not exclude children of the folder “Obsoleta artiklar” from the search results.
While fiddling with searches I found that “-(wiki:xwiki AND space_prefix:IT.Obsoleta\ artiklar)” does exactly what the help text for search exclusions describes “The pages to exclude from the search (along with their child pages)”
Does anyone know how to make the search exclusions use space_prefix instead of using space_exact and name_exact or any other way to make the function to exclude child objects?
Honestly, I’m confused too. From what I can see in the code it seems that to exclude the whole IT.Obsoleta artiklar space, you should pass the reference of its hope page, so IT.Obsoleta artiklar.WebHome.
Not sure it’s really the intended ergonomic (it’s a bit young as a feature after all).
The hint says “The pages to exclude …” because the expected values are currentlypage (document) references, which you can get from the “Page reference” field from the page Information tab at the end of the page content on most pages. But you shouldn’t need to copy and paste a page reference because the “Search exclusions” field is using a page picker, meaning that the values you select from the search suggestions you get while typing in the field are page references. The page picker is of course not displaying the raw page reference (which is technical) but the page title. If for some reason the page you want to exclude is not found by the search suggest then you need to paste its page reference (not it’s title), which you can get from the Information tab.
Thing is when I try to configure an exclusion for the folder “Obsoleta artiklar” in the space IT
XWiki’s UI doesn’t have the notion of folders or spaces. At the level of UI you have only nested pages. Some pages can have child (nested) pages while others are terminal and can’t have them. For historical reasons the reference of a terminal page is a bit different from the reference of a non-terminal page. In any case, what’s important to understand is that the value of the “Search exclusions” configuration field is a list of page references which you don’t need to care about if you use the picker, but if you want to paste or type a value it helps to be aware of the difference between terminal page references and non-terminal page references. Finally, if a page is excluded then it’s child pages (none for a terminal page) are excluded as well. There’s no way currently to exclude a page without all of its descendant pages.
My bad missing that it should be references, @tmortagne writing “IT.Obsoleta artiklar.WebHome” worked.
@mflorea It also worked to use the page picker when I took the time to scroll through the list finding the “Obsoleta artiklar” root among a ton of pages i’m not allowed to delete.