我目前正在網站上擴展Google網站搜索/自定義搜索設置的功能。 在這個問題上我不是很大,但是我需要使用包含一些額外數據的「Pagedata」元素來設置網站地圖,例如Date和Category。谷歌自定義搜索,結構化數據不起作用
<url>
<loc>
http://www.videnscenterfordemens.dk/viden-om-demens/til-patienter-og-paaroerende
</loc>
<lastmod>2013-10-28</lastmod>
<PageMap xmlns="http://www.google.com/schemas/sitemap-pagemap/1.0">
<DataObject type="document" id="hibachi">
<Attribute name="category">En kategori</Attribute>
<Attribute name="date">20131028</Attribute>
</DataObject>
</PageMap>
</url>
查詢像這樣得到的頁面與特定類別: q=patienter+more:pagemap:document-category:En kategori
但是不要返回上述頁面,而不是返回其他頁面,甚至沒有一個類別集。 關於我需要做什麼的想法,能夠在具有特定類別屬性的頁面中進行搜索?
PS。該網站地圖已經由谷歌索引後,所做的更改。調試這個
嗯。以及它在網站管理員工具中驗證.. 將我的網頁地圖放在HTML中會更好嗎?我只是覺得它有點亂...是我的頁面結構correcT? –
現在在html中添加頁面映射,使用此方法https://support.google.com/customsearch/answer/1628213 ..但仍然測試工具表示沒有結構化數據 –