accept string or object from user in the "search" parameter