use te configurated type to get the correct protocol for searching.