Support type param on search method.

- Might make sense to parse type of returned elements into the new Type enum as well.