If you are looking for partial string matches, you can request a regular expression. Here is the relevant part of the mongomapper document:
http://api.mongodb.org/ruby/current/file.TUTORIAL.html#Querying_with_Regular_Expressions
It is worth noting this from the Mongodb docs:
"For simple prefix queries (also called root regular expressions), such as the / ^ / prefix, the database will use the index when it is available and suitable (like most SQL databases that use indexes to express the% LIKE prefix). Works only if there is no I in the flags (case insensitive).
source share