數(shù)據(jù)開放
神馬搜索向優(yōu)質(zhì)網(wǎng)站開放結(jié)構(gòu)化數(shù)據(jù)提交功能。符合質(zhì)量要求的網(wǎng)站,根據(jù)神馬的數(shù)據(jù)需求將需要的網(wǎng)頁字段數(shù)據(jù)提交給神馬搜索,神馬搜索在搜索結(jié)果中按既定模板展現(xiàn),提升網(wǎng)站在搜索結(jié)果中的體驗,幫助站長獲得更多的搜索流量。
神馬搜索目前支持文檔、自媒體、視頻、資訊、論壇、問答等內(nèi)容類型的數(shù)據(jù),后續(xù)會逐步開放更多類型的數(shù)據(jù)。
開放數(shù)據(jù)的格式:
結(jié)構(gòu)化數(shù)據(jù)支持以xml文件及索引型xml格式提交,其中限定索引型xml最多不超過三層,每層的item不超過1000個。
1.頂層xml格式
<sitemapindex>
<sitemap>
<loc>
http://www.abc.com/structure/index_1.xml
</loc>
<lastmod>2013-12-18 12:59:12</lastmod>
</sitemap>
<sitemap>
<loc>
http://www.abc.com/structure/index_2.xml
</loc>
<lastmod>2013-12-18 12:59:13</lastmod>
</sitemap>
</sitemapindex>
2.中間層xml格式(非必要,視數(shù)據(jù)量而定)
<sitemapindex>
<sitemap>
<loc>
http://www.abc.com/structure/index_1/1.xml
</loc>
<lastmod>2013-12-18 12:59:12</lastmod>
</sitemap>
</sitemapindex>
3.數(shù)據(jù)層xml格式
不同網(wǎng)頁類型的字段要求不同,此處僅列出通用字段
<?xml version="1.0" encoding="utf-8"?>
<document>
<webName>![CDATA[您的網(wǎng)站名(如淘寶網(wǎng))]]</pwebName>
<hostName>![CDATA[網(wǎng)站主機名]]</hostName>
<datalist>
<item>
<url>![CDATA[http://www.domain.com/p-657298480.html]]</url>
<title>![CDATA[網(wǎng)頁標(biāo)題]]</title>
<publishdate><![CDATA[2013-05-24]]></publishdate>
<tags><![CDATA[網(wǎng)頁核心關(guān)鍵字]]></tags>
</item>
<--n組item-->
</datalist>
</document>
來源:神馬站長平臺