You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by David denBoer <dd...@apple.com> on 2005/06/16 02:10:54 UTC
Indexing/Querying problem
Hi all,
We are getting ready to implement our lucene search tools and want to
know if the following scenario is even possible :
The application user has a group and a role.
Document has name, author, body, and a list (of groups and roles it
is visible to), and a list of smart groups (dynamic list of groups
that can change outside of our app)
We want the user to only see documents for his specific role and group
(s).
So if a document had these properties :
name : foo
author : bar
body : blah blah blah
smartGroups : ( {'FRED','MANAGER'} )
groupRoles : ( {'SanJose','MANAGER'}, {'LosAngeles','ASST MANAGER'} )
and smartGroup FRED currently has these groups
('SanJose','NewYork','Dallas','Vancouver')
and our user is in the MANAGER role for 'Vancouver'
How can I return a search result that would be valid for my user?
Any pointers are greatly appreciated.
David.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org