Our product sitemap had 13,403 URLs on Thursday. On Friday it had 3,000. Nobody touched the products. We had touched the rule that decides which products go in.
This is a post about a filter that did exactly what it was told and still produced the wrong result, and about why "how many rows did this exclude?" is a question you should ask on the day you write the filter, not three weeks later.
What the rule was for
A catalogue of 27,170 published products, imported from supplier feeds, has a long tail of listings that are thin: a title, three specs, one recycled paragraph that appears on forty other SKUs. Google does not thank you for submitting those. In practice they eat crawl budget and dilute the quality signal of the pages that matter.
So we added a skip rule in wp-sitemap generation. A product is skipped when its description is under 120 characters after stripping specs, or when its description shares more than five consecutive words with a boilerplate block we maintain. Both conditions are recorded in a post meta flag _sw_sitemap_skip so we can see, per product, why it was excluded.
The rule was reviewed, tested on a sample of 200 products, and looked right. It excluded about 40% in the sample, which felt high but plausible for a feed-driven catalogue.
What it actually excluded
Forty percent of a sample is not forty percent of a catalogue. When we finally counted:
| Count | |
|---|---|
| Published products | 27,170 |
| In product sitemap | 3,000 |
| Excluded by skip rule | 24,197 |
Eighty-nine percent. The sample had been drawn from the newest 200 imports — precisely the batch that had been freshly rewritten, which is why it looked healthier than the corpus.
The shared-words condition was the main culprit. Our boilerplate detector compared against a block that appears in the spec table header of every listing: brand, model, reference number, movement. Five consecutive matching words fired on almost every product, because those five words are structurally identical across the catalogue by design. The rule was flagging normal spec tables as duplicate copy.
The part that stings
Nothing broke. The site works. Every excluded product is still live, still indexable, still linked from category pages — a sitemap is a hint, not a fence. Which means the failure was silent in exactly the way that matters: no error, no alert, no visible symptom, a 78% drop in discovered URLs.
We only caught it because a weekly check prints sitemap counts next to catalogue counts. If we had been checking "products in sitemap > 0" we would still be blind.
How we are fixing it
Not by loosening the threshold until the number looks nice. By separating the two conditions, because they were doing different jobs:
- Length: keep it, but measure the description after removing the spec table, and set the floor per category rather than globally. A watch with 90 characters of prose and a full spec table is not thin; a t-shirt with 90 characters is.
- Boilerplate overlap: stop comparing against a template that is supposed to be identical. Compare against other products' prose only, and require the match to be at least 25 words, not five.
- Reporting: every sitemap build now logs excluded/skipped/reasons as a row in a table, and a threshold change is a diff we can read, not a constant someone edits.
The re-audit is 20 random excluded products reviewed by hand before we change the rule. If the manual review and the automated verdict disagree on more than two of twenty, the rule is wrong and we rewrite it rather than tuning it.
The transferable bit
A content-quality filter has two failure modes and only one of them is loud. Over-inclusion makes Google complain in Search Console — you see it. Under-inclusion makes your sitemap quietly smaller, and nobody files a ticket about a number going down.
So: log the exclude count every build, alert on a delta above 5%, and always sample from the middle of the catalogue rather than the newest batch. The newest batch is the one you just cleaned up.
This is the operational log of superwander.shop, an independent shop for luxury watches, handbags, shoes and apparel, ordered over WhatsApp. The catalogue that produced these numbers lives at /shop/, and the shoe category is the worst offender for thin listings — supplier feeds there are the least structured. A typical healthy listing, Chloé knee-high boots, has prose plus a spec table, which is the shape the new rule has to recognise.
