Removed pages (404/410) still appear in Web V2 search results
Issue
A site owner removes or unpublishes pages (HTML or PDFs) and the live URLs now return 404 or 410, but search results built on a Web V2 datasource still return those URLs. Clicking a result lands on a dead page. The stale documents stay until a crawl actually removes them.
Environment
- Fusion 5.x, Web V2 connector (
lucidworks.web-v2) - Managed Fusion and self-hosted
How 404/410 removal works
The index only syncs with the live site when a crawl runs. A document is removed only when the connector re-fetches that URL during a crawl and gets an HTTP 404 or 410 while Remove 404/410 pages (delete404, under Recrawl Rules) is enabled. When this condition is met the connector emits a delete for that document; when delete404 is off, a 404/410 is skipped and the existing document is left in place.
Between crawls, or when the conditions below are not met, the index keeps serving the last version it saw.
Diagnosis checklist
Check each item on the affected datasource:
- Is there a recurring schedule? Without a schedule, cleanup only happens when someone runs the datasource manually. Check the job history for the last run date and whether a recurring schedule exists. Schedule the crawl to run at least as often as the site retires content.
- Is "Remove 404/410 pages" (
delete404) enabled? The default istrue, but confirm the actual datasource config — audits have found many datasources with it disabled. It must be on when the crawl hits the 404/410. - Is "Recrawl all items" (
refreshAll) enabled? The default istrue. If recrawl has been narrowed to start links only, or to an age, regex, or ID rule, a removed page that nothing links to may never be re-fetched, so it never returns a 404/410 to the crawler. - Does the site return a real 404 or 410? Removal keys off the HTTP status code only. A "Not Found" page served with 200 (soft 404), a redirect, or a WAF block page will not trigger deletion. The fix belongs on the site/CMS side, or in a custom pipeline stage or recrawl rule.
- What is "Fetch failure allowance" (
deleteErrorsAfter) set to? The default is2, which removes a document after it tolerates 2 consecutive fetch errors (deleted on the 3rd). A value of-1turns this off, so URLs that keep timing out or returning 5xx are never removed. This governs error/timeout removal; true 404/410 removal is controlled bydelete404. - Is the stray-deletion circuit breaker blocking deletes? On Fusion 5.18.0 and later, V2 and Pro connectors include Core Properties → Stray Content Deletion Settings. The circuit breaker (Stray Deletion Threshold (%), default
80) blocks a crawl's stray deletions when they exceed that percentage of indexed items, to prevent accidental mass deletion. A large legitimate cleanup can be blocked this way; the job history shows the details. - Do crawls finish? Read timeouts or errors partway through a crawl mean some URLs are not re-checked on that run. Fix the timeouts first.
Resolution
- Normal case (settings correct, crawl just has not run): Run the datasource, or wait for its scheduled run. The 404/410 URLs are re-fetched and deleted. If there is no schedule, add one.
- "Zombie" documents: In the source ticket, pages went 404 while
delete404was disabled, and later crawls had already processed those URLs. Afterdelete404was turned on, normal incremental runs did not purge the already-stale documents. The fix that worked:- Enable
delete404(and check the other items above). - Clear the datasource once. This removes only that datasource's documents, not the whole collection. Clearing the CrawlDB alone was not enough in the source ticket.
- Run a fresh full crawl. After this, scheduled runs handle new 404/410s.
- Enable
- Small, known set of URLs: The documents can be deleted by
id(the URL) directly from the Solr index. On Managed Fusion, a customer who cannot delete from the index themselves can open a ticket with the full list of URLs.
Managed Fusion / Core Package notes
- Customers without admin UI access on prod cannot change schedules or recrawl settings themselves. On prod, Fusion-side changes are made through Managed Services.
- Customers who have access to a lower environment should configure and test
delete404,refreshAll,deleteErrorsAfter, the stray-deletion settings, and schedules there first, then open a promotion ticket listing the datasources and the crawl cadence they want. - Requests to schedule or reconfigure many datasources are new configuration work, not break/fix.
Source
Internal support ticket: removed pages that now return 404 still appeared in a Web V2 site search. Root causes were a datasource with no schedule, delete404 disabled, and deleteErrorsAfter set to -1. Resolved by clearing the datasource once and running a full recrawl. Code path confirmed in lucidworks/web-v2-connector (WebContentProcessor.process() and RecrawlRulesConfig); stray-deletion settings confirmed in the Web V2 datasource schema (Core Properties).