set the search category to an optional argument