add ability to generate a search context from a configuration hash