The search restriction must be a valid search as would go in the search box. It is up to you to generate such a thing.
If what you have is a search restriction name (a saved search name), then the restriction search is generated using something like
Code:
'search:"%s"'%(saved_search_name)
Or are you doing something else?