docs for search method