Implements #3
The search method got a new "type" argument. It can be 'pattern' or
'field', depending of the type of the search query.
For convenience, wrapper functions has been created:
"search_field" and "search_pattern"