Home » Topics » Technical and configuration issues » Setup issues » Items in trash and drafts being indexed
How do I prevent items from the trash and drafts from being indexed and ending up in the search?
They should not be indexed of course. If you trash or draft a product, you should see the WPSOLR message “Product removed from the index”.
here is a screenshot from algolia: https://file.io/Iu1cELo8c4ZZ These pages are showing up in the auto-suggest but not in the actual search results (after you click enter). I also do not see them in the category or facets.
Ok, sorry about that. Here you go: https://gofile.io/d/HEWdcO
This is the screenshot showing the drafts and trash ending up in Algolia:
(disregard previous file, its for the other ticket)
All status are indexed if you activate the “Index all status. To replace search in admin too. Only published is shown in front search” in screen 2.2
But suggestions and search only return published post types on front-end.
Got it, makes sense. I will re-index and post back.
You must be logged in to reply to this topic.