initialize search type