search script add search by type