Why would taxonomy terms that I have previously deleted show up in my facet? I'm using search api solr. There is no term named "23"; it is a tid, but tid 23 is not in the database yet my facet shows 29 items as being tagged with it. I have flushed cache, run cron, rebuilt index, all multiple times, and don't know what else to do.
1 Answer
Filter by that facet and check the nodes that display, they probably still reference the deleted term (see issue: Database records not deleted for Term Reference Fields after Term is Deleted)
To get rid of it, edit the nodes and remove the term reference, either manually or programatically depending on the volume. Then reindex your content.
-
1Thanks for the issue reference. That is it. Removed the offending rows from field_[data,revision]_field_name Commented Oct 12, 2015 at 19:22