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>