clear 'searching' flag on exit from the documents route.