Fixes bug 875080 - Added config option to force search middleware implementation.