making search more flexible by adding search on multiple types