Remove static for _update_doc_in_index