Determining search type in the redirects.

Signed-off-by: Ronald Huereca <ronalfy@gmail.com>
Finishing up search by types.

Signed-off-by: Ronald Huereca <ronalfy@gmail.com>