How to add a Google Blog Search in your Blog?
Posted by Sree Pillai on July 11th, 2007 under category Blogging, Google, SEO
Topics: Blogging, Google
I have been using Technorati blog search add-in for Sree’s Tech Notes. Lately I find Technorati weaker and weaker as the blogosphere grows. Google Blog Search now performs much better than Technorati search, updates it’s indexes within minutes.
Technorati provides eazy to copy & paste code for incorporating their blog search engine to any blog. But I haven’t seen Google doing this. Anyway, I like the Google service and want to put it in my blog.
Here is the code I wrote to incorporate Google Blog Search in Sree’s Tech Notes blog.
<form class="search" action="http://www.google.com/blogsearch"
method="get" onsubmit="if(this.q.value=='Search Tech Notes')
{return false;}else{this.q.value=this.s.value+'
blogurl:http://teck.in/'};">
<input type="text" size="18" name="s" value="Search Tech Notes"
title="Enter Your Search Query Here"
onfocus="if(this.value=='Search Tech Notes'){this.value=''};"
onblur="if (this.value==''){this.value='Search Tech Notes'};" />
<input type="submit" value="Search"/>
<input type="hidden" name="q"/>
</form>
Sample:
BTW, which blog search engine do you use? Why?
7 Responses to “How to add a Google Blog Search in your Blog?”
Leave a Reply
Article URI: http://teck.in/how-to-add-google-blog-serach-in-your.html
Author Email: sree@teck.in
Author Email: sree@teck.in



Thanks Sree. I did it.
I also added your code to my blog.I added ’sourced from Sree Pillai’ linking to you post.
Hope you have no issues
)
Thanks again.
Dear Vivek,
If you haven’t activated the PING/Notification service in Blogger control panel, please do so, in order for Google to notify blog search engines.
You can also try http://blogsearch.google.com/ping
Yes, the NavBar search offers much better functionality! But it does take extra space on the top, and may not look good i your design.
Also In Blogger, the Navbar will have search box right. Yoru blog is not having it due to customization.But many blogs will have.
If i have search box in my Nav Bar, will this piece of code be redundant?
Hi Sree
A query on Google Blog Search:
If I blog search with the following key word – infosys blogurl:wannabeeworld.blogspot.com, i m not getting all the posts in my blog which have Infosys in them.
I am getting only older posts with infosys keyword.also in blog search, my old blog title is being displayed in the search results.Should I update something/somewhere to enable Google Blog Search to search the new posts as well.
I use Google Blog Search because of “Google” brand
)
I am now planning to Ctrl C+Ctrl V the code snip of course, with little customization, for my blog
Thanks, Sree, for sharing this tip.