removed app specific code, made indexing async on server
small fix for not fully indexed documents.