我正在关注this guide by Google在我的网站上添加附加链接搜索栏。结构化数据标记工具显示一切正确。但是:
Google已将页面www.example.com/search?q=%7Bsearch_term_string%7D
编入索引:
我有与示例中说明的完全相同的代码,当然除了站点URL。我究竟做错了什么?或者这是预期的行为?
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "http://www.example.com/",
"potentialAction": {
"@type": "SearchAction",
"target": "http://www.example.com/search?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>