# Exact matching in a query

**URL:** <https://www.ruby-forum.com/t/exact-matching-in-a-query/152703>\
**Category:** Ferret\
**Created:** [November 6, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/exact-matching-in-a-query/152703 "2008-11-06T16:28:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamieal74](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e79b87/32.png) [@jamieal74](https://www.ruby-forum.com/u/jamieal74)\
**Post date:** [November 6, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/exact-matching-in-a-query/152703/1 "2008-11-06T16:28:32Z")

</div>

I have a need for a layer of access control when performing a query on  
the ferret index. The solution is to add an additional 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?
