docs: def _delete_doc_from_index(index_writer, docid):
          """
          Remove a document from the index
          """
          query = whoosh.query.Term("docid", docid)
          index_writer.delete_by_query(query)