Move search function to RiakRealm