0

I notice that schema.org which is used by search engines to index information about your site and make it easier for users to find what there looking for, only works for selective sites.

What Im not understanding is why does the search bar appear in search results for livingsocial and Groupon but not for Experience.Now these are all the same based website type.

now the way I would input the code as json to make the search bar appear will be

but this also does not work my site search still does not appear in the search results on google. Can someone tell me if Im doing this wrong or a better way to do it. ?

<div itemscope itemtype="http://schema.org/WebSite">
  <meta itemprop="url" content="https://www.example.com/"/>
  <form itemprop="potentialAction" itemscope itemtype="http://schema.org/SearchAction">
    <meta itemprop="target" content="https://query.example.com/search?q={search_term_string}"/>
    <input itemprop="query-input" type="text" name="search_term_string" required/>
    <input type="submit"/>
  </form>
</div>
Alfa
  • 1
  • I'm voting to close this question as off-topic because it belongs on [the site for Professional Wemasters](http://webmasters.stackexchange.com) – Rowland Shaw Feb 02 '16 at 08:45

1 Answers1

0

Google Search doesn’t guarantee to enhance your page’s SERP entry just because you use appropriate Schema.org markup (see also their quality guidelines). If it gets displayed may depend on various factors (search keywords, user history, location etc.), assuming that it’s correct.

From their Sitelinks Search Box documentation:

Search box not displaying? The Sitelinks search box appears only for navigational queries and when relevant for users. Google algorithms use a variety of factors to determine when the search box appears, including the information on the site and different types of navigational queries from Search users.

For example, one reason why it might not display for http://www.roovet.com/local/ (I didn’t look into this site, nor did I check if it really never displays) could be that Google doesn’t interpret it as the homepage of the site. From the guidelines:

Put the markup on the homepage of your site.


Your example is copied from Google’s Microdata example for the Sitelinks Search Box. While this is not correct HTML5+Microdata (link must be used instead of meta, if the value is a URI), there’s no reason to assume that this shouldn’t work (otherwise, why would they document it like that?).

Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360