Re: [xwiki-users] custom index

2012-02-27 Thread O Voss
Thnks Marius, just what I was looking for!

BTW, I have a suspect: Possibly it's just a tomcat restart that triggers this 
problem (again and again). I'll have to confirm that yet though.

Cheers,

Olaf





 Von: Marius Dumitru Florea mariusdumitru.flo...@xwiki.com
An: O Voss richyfourtyth...@yahoo.com; XWiki Users users@xwiki.org 
Gesendet: 16:24 Mittwoch, 22.Februar 2012
Betreff: Re: [xwiki-users] custom index
 
On Wed, Feb 22, 2012 at 4:25 PM, O Voss richyfourtyth...@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#HSearchAdministration

 (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@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users



___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] custom index

2012-02-23 Thread mohit gupta
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.flo...@xwiki.com wrote:

 On Wed, Feb 22, 2012 at 4:25 PM, O Voss richyfourtyth...@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#HSearchAdministration
 
  (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@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] custom index

2012-02-22 Thread Marius Dumitru Florea
On Wed, Feb 22, 2012 at 4:25 PM, O Voss richyfourtyth...@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#HSearchAdministration

 (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@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users