Hi Marius,
Can i do similar kind of stuff to exclude a certain userfrom showing up in
search results at all programmatically. Basically what i want is if the
logged in user is A and belongs to GroupA only users under GroupA should
appear on results not the users belong to any other group.
On Wed, Feb 22, 2012 at 8:54 PM, Marius Dumitru Florea <
mariusdumitru.florea(a)xwiki.com> wrote:
On Wed, Feb 22, 2012 at 4:25 PM, O Voss
<richyfourtythree(a)yahoo.com>
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#HSe…
(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
> users(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users