Forum: Ruby on Rails ferret question - need help with syntax for exact matching

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
jamie (Guest)
on 2008-11-27 15:57
(Received via mailing list)
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?
Mark Reginald J. (Guest)
on 2008-11-29 11:55
(Received via mailing list)
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
This topic is locked and can not be replied to.