RAZ-3491: Make indexing run in a thread
- Put indexing calls in threads