When the number of sitemap items does not match the crawling report, first check whether it is generated or submitted
When the number of items in the sitemap does not match the crawling report, should you check the generation side or the submission side? The answer is to check the generation first, then the submission: problems with the sitemap file itself (missing fragments, distorted lastmod, non-standard addresses mixed in) will cause all subsequent engine data to be distorted, while issues on the submission side (whether the engine reads, whether active push keeps up, whether the robots declaration is consistent) are usually worth checking only after the generation is correct. Checking in reverse order will misdiagnose a file bug as 'the engine does not accept your site.'
What do the two numbers count separately?
Align the口径 first: The site map count statistics are 'how many URLs you claim to be caught', and the crawling and collection report statistics are 'how many the engine actually caught and how many it thinks are worth collecting'.Both are inherently unequal - the map can have addresses that have been processed by the engine, deemed duplicate, or of low value; pages that were not listed on the map may also appear in the reports.The goal of a healthy investigation is not to force two numbers to be the same, but to confirm the structure of the gap: is the map much larger than the capture (suspicion of mixing garbage addresses on the generation side), or is the capture much larger than the map (the site can be captured but the index coverage is out of control, the declaration submission is not keeping up).
First check the generation side: slices, lastmod, and standard address
Check three things in order. First, the shard and index file: when the number of sites is large, the sitemap will be split into multiple sub-maps plus one index file. The most common pitfall for new sites is that the index list is missing sub-maps - manually check the total number and the sum of the sub-map list.The Anqi CMS supports automatic Sitemap generation, the generation logic covers documents according to the content model and publishing time, and key inspections are conducted after upgrades or migrations to check if new columns have been added to the list.Second, lastmod: If the lastmod of each item is equal to the generation time, the engine will treat the entire site as 'simultaneous major change', and the incremental crawling strategy will fail;The correct aperture is to take the real modification time of the content. Third, standardized address: The map should only contain 200 status standard URLs, old addresses with redirection (301 redirecting historical paths), addresses with tracking parameters, and duplicate HTTP and HTTPS, all are common sources of
Then check the submission side: submission, push, and declaration
After the side is cleaned up, check if the engine has really read: whether the submission record and the latest read time of sitemap in the site owner platform are fresh; whether the declaration of sitemap in robots.txt points to the current file - when the robots configuration and the actual submitted address are inconsistent, the crawling spider that follows the declaration will find the wrong file.The slow increase in inclusion does not mean that the sitemap is invalid; there is a queue time between the new page entering the graph and the engine crawling; at this time, what should be supplemented is link push: actively push new pages and updated pages to Baidu and Bing, changing the step of 'discovery' from passive waiting to be crawled to active notification; the sitemap manages the full amount as a backup, and the push manages the timeliness of the increase, with each channel checking independently.
Three typical scenarios that do not match
Scenario one, the number of map entries far exceeds the crawling volume: mostly historical garbage addresses have entered the map, and cleaning should be done according to the third rule on the generation side. Scenario two, the crawling volume is normal, but the growth of inclusion has stagnated: it captures the rotation of the homepage and column pages, but the main content pages have not entered the crawling queue. Check for lastmod distortion and content duplication. Scenario three, addresses outside the map appear in the report: old files declared by robots are still hanging on the engine side, or historical external links have fed old parameter addresses to the crawler - withdraw old submissions, assign 301 redirects to old addresses to converge to standard pages. For each scenario, first return to the generation side file itself to find evidence, and then adjust the submission configuration.
Common questions
Ask: Will regenerating the entire sitemap trigger a full re-crawl?Answer: The engine judges according to lastmod and content changes; only the actual modification time will not cause misjudgment; writing the generation time into lastmod is more likely to cause abnormal concentrated crawling.
Ask: Is there a repetition between active push and sitemap submission?Answer: Not repeated: sitemap is a full list and a backup discovery, push is an incremental notification, the timeliness of inclusion mainly relies on the latter, and the completeness of coverage relies on the former.
Ask: Should the translation pages of multilingual sites be included in the same map?Answer: Generate and submit separately according to the site affiliation, switch between language versions using the language switch within the page, and avoid confusion due to mixed URL arrangements of two languages causing specification judgment.