Using sitelinks search bar google

这一生的挚爱 提交于 2019-12-08 02:44:58

问题


I am following this guide by Google to add a sitelinks search bar on my website. The structured data markup tool shows everything to be correct. But:

  1. The search bar hasn't appeared in the search results for my website.
  2. Google has indexed the page www.example.com/search?q=%7Bsearch_term_string%7D instead:

I have the exact same code as explained in the example, except the site URL of course. What am I doing wrong? Or is this expected behaviour?

<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>

回答1:


It looks like you are searching incorrectly, search for either example or example.com instead:

According to this a large number of searches are needed before google will display it - moz.com states that:

Does your site receive a high volume of navigational or branded search traffic?
For example, keyword phrases such as 'moz' and 'moz.com' send this website thousands of visits per week. Branded and navigational search volume is a good, but not perfect, indicator of the likeliness of the sitelinks search box to appear.



来源:https://stackoverflow.com/questions/31662330/using-sitelinks-search-bar-google

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!