My apologies, since this may not exactly be the appropriate place for this post, but... posted this on the Ruby Ferret Forum, and did not get any responses (board is not very active) I have a need for a layer of access control when performing a query on the ferret index. The solution is to add an dditional clause (e.g. - access_teams:12 OR 13 OR 14 OR 22 OR 1). In order for this to work, I need exact matching. This query does not perform an exact match. It appears if the index record has access_teams=2 the query will return this record. Can someone help me with the syntax for exact matching? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mark Reginald James
2008-Nov-29 09:55 UTC
Re: ferret question - need help with syntax for exact matching
jamie wrote:> I have a need for a layer of access control when performing a query on > the ferret index. The solution is to add an dditional clause (e.g. - > access_teams:12 OR 13 OR 14 OR 22 OR 1). In order for this to work, I > need exact matching. This query does not perform an exact match. It > appears if the index record has access_teams=2 the query will return > this record. > > Can someone help me with the syntax for exact matching?Perhaps +access_teams:12|13|14|22|1 -- Rails Wheels - Find Plugins, List & Sell Plugins - http://railswheels.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---