[PageMap不包含在来自Google自定义搜索引擎的搜索结果中

问题描述 投票:0回答:1

我有一个自定义搜索引擎和我自己的React客户端,该客户端使用CSE json API呈现搜索结果。我想使用结构化数据显示丰富结果,因此我将PageMap添加到了源HTML文件中。但是Google的搜索结果不包含PageMap中的任何数据。

结构化数据通常用于过滤搜索结果。在这里,我担心在自定义搜索结果中接收结构化数据这一较简单的问题,因此我可以自己渲染它。

这是来自我的CSE站点之一的示例HTML源页面:

view-source:http://www.johndimm.com/eleventh-hour/papyritec/Humidity_control_tile.html

标题中有一个PageMap(以及使用schema.org的Product的ld + json:]

   <!--
  <PageMap>
     <DataObject type="document">
        <Attribute name="product_name">Humidity control tile</Attribute>
        <Attribute name="rating">4.0</Attribute>
        <Attribute name="description">With the integration of nanotechnology into the humble ceramic tile, we have a new generation of tiles to solve household problems. Our nanotech tiles can regulate humidity by absorbing excess moisture and storing it in the tiny pores; and by releasing moisture when the environment is dry. It also absorbs VOCs and air pollutants into the pores and catalyse reactions to break down toxicity in those gases. Due to its porosity, it is a fantastic insulator of both heat and sound. Think nano-tiles for your next renovation!</Attribute>
        <Attribute name="product_id">nanotile01</Attribute>
     </DataObject>
     <DataObject type="thumbnail">
        <Attribute name="src" value="nanotile01.jpg" />
        <Attribute name="width" value="300" />
     </DataObject>
  </PageMap>
  -->

尽管有页面地图对象,但搜索结果未显示任何信息:

[https://www.googleapis.com/customsearch/v1?key=[cse键]&cx = 010143774142193520043:z76tkkewcr9&q = papyritec%20湿度]]

页面地图只有cse_thumbnail和cse_image,我认为是Google添加的。

     "pagemap": {
        "cse_thumbnail": [
          {
            "src": "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRtbYjjezl1LjCPxzWlcqP8qqUwOZ31ap1fvMz9w5tq1YYY8_pSL4ITR6E",
            "width": "203",
            "height": "249"
          }
        ],
        "cse_image": [
          {
            "src": "http://www.johndimm.com/eleventh-hour/papyritec/images/nanotile01.jpg"
          }
        ]
      }

问题:我在做什么错?这是包含PageMap的正确方法吗?我的页面地图字段是否应该合并到每个结果项中的页面地图对象中?

更多详细信息:

此页面的结构化数据测试工具找到ld + json,但没有找到PageMap:

https://search.google.com/structured-data/testing-tool/u/0/#url=www.johndimm.com%2Feleventh-hour%2Fpapyritec%2FHumidity_control_tile.html

Rich Results Test还显示ld + json数据,但不显示PageMap。

https://search.google.com/test/rich-results?utm_source=support.google.com%2Fwebmasters%2F&utm_medium=referral&utm_campaign=7445569&id=3bPgmFzohazQyLMe2XJKJQ

这里是显示自定义网页地图进入搜索结果的帖子。这就是我希望看到的。它仅是付费级别的功能吗?

Pagemap data and Google Structured Data Validator tool

[来自Google的帖子说:“请注意,当前CSE不支持JSON-LD。”

https://support.google.com/customsearch/thread/12070581?hl=en

PageMap似乎是结构化数据的首选方法。必须有某种使它起作用的方法。

我有一个自定义搜索引擎和我自己的React客户端,该客户端使用CSE json API呈现搜索结果。我想使用结构化数据显示丰富结果,因此我在我的源HTML中添加了一个PageMap ...

schema.org google-custom-search json-ld google-rich-snippets structured-data
1个回答
0
投票

我不够耐心。 18个html文件之一现在与我的大多数页面地图数据一起显示在搜索结果中。它们都具有相同的格式,所以也许我只需要更多地等待它们由Google以相同的方式处理即可。

© www.soinside.com 2019 - 2024. All rights reserved.