Fix search engine and document upload