On Wed, Feb 22, 2012 at 4:25 PM, O Voss <[email protected]> wrote:
Hi,
I want to exclude a certain space from showing up in search results at all. I thought it might be possible to do that using the HQL based filter query hinted at here: http://extensions.xwiki.org/xwiki/bin/view/Extension/Search+Application#HSea...
(I thought about something like "not doc.fullName like 'spacename.%'", which I have used successfully on MyRecentModifications.)
Unfortunately the search administration looks a bit different to me, I can't find HQL filter, all I see is 'Custom index' (or rather 'Benutzerdefiniert indizieren', since I'm running it in German).
Where do I define the custom indexing? Am I on the right track at all, or is there a simpler way? (Be aware, I want to get rid of that space everywhere in searches, not just on Main.Search. On Main.Search I have done it successfully already. But the document search within the WYSIWYG editor seems to work independently from that. So I thought I'd take a more radical approach by throwing the space out of the index!)
The WYSIWYG content editor uses a custom database search which takes into account the list of blacklisted spaces. So if you edit the xwikivars.vm Velocity template and add your space(s) to the value of the $blacklistedSpaces variable then pages from that space shouldn't appear anymore in the search results. Hope this helps, Marius
Cheers,
Olaf _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users