Decouple indexing process from http request, keep list of running indexing processes by document type