【问题标题】:Schema.org for search results page用于搜索结果页面的 Schema.org
【发布时间】:2019-12-31 22:20:01
【问题描述】:

我在主页上实现了一个 Google 附加链接搜索框。 我检查了https://developers.google.com/search/docs/data-types/sitelinks-searchbox,它没有提到我应该为结果页面使用哪种格式。

哪种 Schema.org 类型可用于我自己的 SERP?我应该使用 XML 站点地图、JSON-LD、微数据吗?

【问题讨论】:

  • 此功能用于在 Google 搜索中显示您的搜索字段。不涉及您网站的搜索结果。
  • 我知道!我只是想知道我应该如何格式化结果。

标签: schema.org google-sitelink-searchbox


【解决方案1】:

您可以使用SearchResultsPage 类型。

每个结果都可以是WebPage(或更具体的类型,如ItemPage,如果适用的话)。

要将SearchResultsPageWebPage 结果连接起来,您可以使用mainEntity 属性和ItemList 值。你可以找到RDFa examples in this answer

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-23
    • 2023-03-20
    • 1970-01-01
    • 2011-08-25
    • 2015-08-11
    • 2014-08-18
    相关资源
    最近更新 更多