I think you'll have to with query of query - unless you can use verity's language to filter - something like AND "Group A" - but if you had a document that contained "Group A" but belonged to group b, you'd be screwed - so back to QofQ.
----- Original Message ----- From: "Ian Vaughan" <[EMAIL PROTECTED]> To: "CF-Talk" <[email protected]> Sent: Tuesday, May 17, 2005 8:10 AM Subject: Verity and Security > Hi > > I am using Verity to search a documents database, in which one of the > fields is called 'Security'. This holds the group/security information > for the document. At present Verity is returning all matched results in > the database. > > How can I configure the search results so that it will only return > documents that the logged in user is allowed to view ? > > When setting up a collection I have specified a CUSTOM field i.e. > > Custom2="security"> > > which holds the documents security details i.e. Group A, Group B etc. > > and have set a session variable holding the groups that the user belongs > to.. (Group A, Group B etc.... > > <cfset session.groupname = QuotedValueList(UserGroups.groupname)> > > How can I build this into the search results ?? > > <CFSEARCH > name = "GetResults" > collection = "id" > type = "simple" > criteria = "#HTMLEditFormat(Form.Criteria)#" > maxRows = "#Evaluate(Form.MaxRows + Form.StartRow)#" > startRow = "#Form.StartRow#" >> > > <CFOUTPUT query="GetResults"> > <a href="/documents/#custom1#">#title#</a> > <br> > #summary# > </cfoutput> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206854 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

