[#45997587] Delete taggings when deleting tags. Also refactor SolrIndexer.