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

...entation.

@peterbe or @jezdez, r?