Backend: docsearch: clean the cleanup

Signed-off-by: Jerome Flesch <jflesch@gmail.com>