LA IDEA ÚTIL

Cuenta páginas y archivos por separado. Dividir un inventario organiza su entrega; no convierte las URL listadas en páginas indexadas.

Identifica qué recurso enumera cada archivo

En un sitemap XML de páginas, el elemento raíz es urlset. Cada entrada url contiene un loc con la dirección de una página. En un índice, la raíz es sitemapindex y cada entrada sitemap contiene un loc con la dirección de otro archivo sitemap.

Google documenta ambos niveles. Si miras solo cuántos loc hay, pierdes la diferencia entre dos páginas y dos archivos que reúnen muchas páginas. Antes de hacer la cuenta, comprueba la raíz, la entrada que contiene cada dirección y qué devuelve esa dirección al abrirla.

Divide un conjunto sin repetir páginas

Nuestro editor ficticio tiene 52.000 URL de contenido elegidas para el inventario. Google limita cada sitemap a 50.000 URL o 50 MB sin comprimir. Basta superar uno de esos límites para necesitar una división; un archivo gzip pequeño no evita el límite del tamaño descomprimido.

El ejercicio propone sitemap-a.xml con 30.000 páginas y sitemap-b.xml con las otras 22.000. Los conjuntos no se solapan y, bajo los supuestos del ejemplo, ambos archivos quedan por debajo del límite de tamaño. No son archivos del sitio Jincheng ni una medición de su catálogo.

Construye un índice de dos entradas

En https://example.org/sitemap-index.xml, el editor incluye dos entradas sitemap. Sus loc apuntan a https://example.org/sitemap-a.xml y https://example.org/sitemap-b.xml. Las direcciones individuales del contenido permanecen dentro de esos dos archivos, no se añaden como si fueran otros sitemaps.

La cuenta es dos archivos referenciados y 30.000 + 22.000 = 52.000 URL de contenido. No son 52.002 páginas de contenido. El ejemplo coloca índice y archivos hijos en la raíz del mismo sitio y utiliza direcciones absolutas. Mantiene un nivel de índice; Google no admite índices anidados dentro de otro índice.

Recorre el inventario desde arriba y desde abajo

Abre el índice y después cada archivo hijo. Comprueba que la respuesta contiene el XML previsto, que se puede interpretar y que el archivo no termina antes de completar sus entradas. Mide el tamaño sin comprimir de cada hijo y cuenta las URL dentro de su propio nivel.

Después compara los conjuntos con el inventario de origen. Busca una página que aparezca dos veces y otra que falte; una suma de entradas podría ocultar ambas cosas a la vez. Si la página número 30.000 se repite en el segundo archivo, el total de entradas ya no demuestra que haya 52.000 direcciones distintas.

Conserva el resultado sin atribuirle indexación

Guarda fecha, archivos incluidos, número de entradas por hijo, tamaño descomprimido y resultado de la comparación de conjuntos. Si agregas otro bloque, incorpora su dirección al índice y repite la revisión sobre lo publicado, no solo sobre la lista que querías generar.

Google permite enviar el índice para presentar varios sitemaps juntos. La lectura o aceptación del archivo y la indexación del contenido son estados diferentes. Usa esta organización cuando el inventario lo requiera; dividir archivos por sí solo no justifica crear páginas nuevas, cambiar sus fechas ni prometer más presencia en búsquedas.

COMPLETE ENGLISH TRANSLATION

A sitemap index lists files: content pages belong at the next level

A file can contain two addresses while representing thousands of pages. To understand it, first distinguish a page sitemap from the index that groups several sitemaps.

Open the English edition ↗

Count pages and files separately. Splitting an inventory organizes its delivery; it does not turn listed URLs into indexed pages.

Identify what each file lists

In a page XML sitemap, the root element is urlset. Each url entry contains a loc with a page address. In an index, the root is sitemapindex, and each sitemap entry contains a loc with the address of another sitemap file.

Google documents both levels. Looking only at the number of loc elements loses the distinction between two pages and two files containing many pages. Before counting, inspect the root, the entry containing each address and what that address returns when opened.

Split a set without repeating pages

Our fictional publisher has selected 52,000 content URLs for its inventory. Google limits each sitemap to 50,000 URLs or 50 MB uncompressed. Exceeding either limit requires splitting; a small gzip file does not bypass the uncompressed-size limit.

The exercise proposes sitemap-a.xml with 30,000 pages and sitemap-b.xml with the other 22,000. The sets do not overlap and, under the example's assumptions, both files remain below the size limit. These are neither Jincheng files nor a measurement of its catalog.

Build an index with two entries

At https://example.org/sitemap-index.xml, the publisher includes two sitemap entries. Their loc elements point to https://example.org/sitemap-a.xml and https://example.org/sitemap-b.xml. Individual content addresses stay inside those two files, rather than being added as though they were more sitemaps.

The count is two referenced files and 30,000 + 22,000 = 52,000 content URLs, rather than 52,002 content pages. The example puts the index and child files at the root of the same site and uses absolute addresses. It keeps one index level; Google does not support nesting sitemap indexes within another index.

Trace the inventory from both directions

Open the index and then each child file. Check that the response contains the intended XML, can be parsed and does not end before its entries are complete. Measure each child's uncompressed size and count URLs within the appropriate level.

Then compare the sets with the source inventory. Look for a page listed twice and another missing page; a total entry count could conceal both at once. If page number 30,000 repeats in the second file, the number of entries no longer establishes that there are 52,000 distinct addresses.

Keep the result without claiming indexation

Record the date, included files, entries per child, uncompressed size and set-comparison result. When adding another group, include its address in the index and repeat the review on the published output, rather than only the list you intended to generate.

Google allows submitting an index to present several sitemaps together. Reading or accepting a file and indexing its content are different states. Use this organization when the inventory requires it; splitting files alone does not justify creating new pages, changing dates or promising greater search visibility.

完整中文翻译

站点地图索引列出的是文件:内容页面在下一层

一个文件可能只有两个地址,却代表数千个页面。理解它之前,需要区分页面站点地图与汇总多个站点地图的索引。

打开中文独立页面 ↗

分别统计页面与文件。拆分清单是在组织提交方式,并不会把列出的 URL 变成已收录页面。

确认各文件列出的资源

页面 XML 站点地图的根元素是 urlset,每个 url 条目里的 loc 包含页面地址。索引的根元素则是 sitemapindex,每个 sitemap 条目里的 loc 包含另一个站点地图文件的地址。

Google 文档说明了这两个层级。只看 loc 的数量,会混淆两个页面与两个包含许多页面的文件。计数前,检查根元素、包含该地址的条目,以及打开地址时实际返回什么。

拆分集合,避免重复页面

虚构出版者为清单选定了 52,000 个内容 URL。Google 规定单个站点地图最多包含 50,000 个 URL,或未压缩大小不超过 50 MB。超过任一限制就需要拆分;gzip 文件较小,不能绕过未压缩大小的限制。

练习建议 sitemap-a.xml 包含 30,000 页,sitemap-b.xml 包含其余 22,000 页。两个集合不重叠,并假设文件大小都低于限制。这些不是 Jincheng 的文件,也不是对其目录的测量。

建立只有两个条目的索引

出版者在 https://example.org/sitemap-index.xml 中放入两个 sitemap 条目,其 loc 分别指向 https://example.org/sitemap-a.xml 与 https://example.org/sitemap-b.xml。具体内容地址仍放在这两个文件内部,不要把它们当作更多站点地图加入索引。

数量是两个被引用文件,以及 30,000 + 22,000 = 52,000 个内容 URL,而不是 52,002 个内容页面。示例将索引与子文件放在同一网站根目录,并使用完整绝对地址。这里只使用一级索引;Google 不支持在索引中嵌套另一个站点地图索引。

从上下两个方向检查清单

打开索引,再打开每个子文件。检查响应是否包含预期 XML、能否解析,以及条目是否完整而未被截断。测量每个子文件的未压缩大小,并在正确层级统计 URL。

然后将集合与来源清单比较,同时寻找重复页面与缺失页面。条目总数可能同时掩盖这两个问题。如果第 30,000 页又出现在第二个文件里,条目总数就不能证明有 52,000 个不同地址。

保存结果,不把它说成已收录

记录日期、包含的文件、各子文件条目数、未压缩大小及集合比较结果。增加新分组时,将其文件地址加入索引,并检查真正发布的输出,而不只检查原本想生成的列表。

Google 允许提交索引,一次提供多个站点地图。文件被读取或接受,与内容被收录是不同状态。清单需要时再使用这种组织方式;仅拆分文件,不足以说明应该新增页面、改变日期或承诺更多搜索曝光。

FUENTES Y NOTAS EDITORIALES

Fuentes y método

  1. Google: Build and submit a sitemap ↗
  2. Google: Manage sitemaps with a sitemap index file ↗

Fuentes consultadas el 29 de noviembre de 2026. Los casos y datos numéricos de los ejercicios son ficticios. Editorial standards · Disclosures.