little question: what's the difference between a MustHavePermission and a protected document?
at the moment we are developing a new search for our intranet and using solr. we also have some protected documents and implemented this kind of filter like you. i just think on using a true filter (fq=xxx) instead of adding conditions to the query. filters are cached and so improving performance and much more they do not affect scoring of matched documents! markus > -----Ursprüngliche Nachricht----- > Von: _jochen [mailto:jgai...@kbs.kaba.com] > Gesendet: Montag, 1. März 2010 14:09 > An: solr-user@lucene.apache.org > Betreff: Query from User Session to Documents with Must-Have > Permissions > > > Hi @ all, > > i try to create a query out of a webbased content management > system. In The > CMS there are some protecetd Documents. While Feeding the > Documents to Solr > I have the Information: A Document is not protected ore someone with > userGroup:group1 has access. So the query can look like: > > collection:collection1 AND textbody:"text" AND unprotected:true OR > userGroups:"group1" OR userGroups:"group2" ... OR all other > userGroups from > user Session > > How does The Query look like, if Document contains Must-Have > Permissions. I > have this information while Feeding, so i have the possibility to Feed > mustHaveGroups. I need to get all results matching the user > Session and > mustHaveUserGroup. > > Thanks for posting ideas! > > -- > View this message in context: > http://old.nabble.com/Query-from-User-Session-to-Documents-wit > h-Must-Have-Permissions-tp27743114p27743114.html > Sent from the Solr - User mailing list archive at Nabble.com. > >