Introduction
You can easily create a browser search plugin for your blog, that any visitor can add to their own browser, that will allow them to run a search on your site - from any other site!
I have the search code on my site. If your running Firefox 2 or Internet Explorer 7, you’ll notice the browser’s search button is lit up:
Firefox 2: 
Internet Explorer: 
This is telling you, the visitor, that this site has a search plugin. You can click the down arrow and add the search plugin to your browser. Now, where ever you are - what ever site - you can enter a search term and you will be brought here and the search will be ran!
Read more instructions on Adding New Search Engines To Your Browser.
Why Should I Add This To My Site?
Why not? Give your visitors a way to return to your site! Plus, there is the “I can’t remember the date, but remember the name” factor. Let’s say your on another site and you are reminded of something you saw here months ago. Just enter the term and hit the search button!
How To Create Your Own Search Plugin
It’s actually really easy to do! All you need to do is create a file named search.xml and fill in the required information. The bare minimum that the file needs is:
Obviously, you need to change some information to fit your needs! Also, keep in mind that, the way the code above is writen, the URL Type tag will work for WordPress. If you are using another platform, you need to check how your code submits a search. Just run a search, pay attention to the URL that is returned, and replace it. WordPress uses:
http://samanathon.com/?s={searchTerms}
Where {searchTerms} represents the search term. Again, if you are a WordPress user, you don’t need to change the structure, just the domain name. Now, upload it to the root of your site! Mine lives at:
http://samanathon.com/search.xml
I Want More!
There are much more information you can add to the plugin that I won’t cover, but you can read about it on the OpenSearch spec site. I have added more info to mine, here is the code that I run:
Neat hack. Although, I can’t really see that many people using this. Is there a way to track the number of people who have the search plugin?
I didn’t see any info on tracking, but I’m sure someone can figure a way to do it!
Also, I have ten different search plugins installed in Firefox:
Why not create one and make it easier for people to search your site? It only takes a few minutes!
In all honesty I didn’t even know you could add extra plugins in Firefox. I just got really good at shortcut keys….
I use:
Google
Wikipedia
Wiktionary
Demonoid torrent pool
Thesaurus.com
IMDB
Urban Dictionary
I find it easier to skip going to the website. If you use the search bar, Ctrl+E (in firefox) gets you there quickly, and you can type right away, and enter. You skip having to go to the website is all. Ctrl+E and F4 lets you shuffle through the search engines as well. Although you probably already know most of this
Actually, I didn’t know any of those keyboard shortcuts!
Thanks!!
I just read an article on this yesterday as one of our vendors uses this to search the help forums and documentation. Glad to see you have ported it to a blog.
Nice! Thanks a lot… now I have another thing on my to-do list.
nice idea, I’ll implement for my site soon
thanks
I dunno about this. Sounds great, but I don’t see folks doing searches from blogs…am I missing something?
Maybe, but it will only take 2-3 minutes of work on your part…
wow. still amazing as always
thanks saman, i was wondering of that a lot of times before, by the way, i see a lot of people having their so called ’search engines’ but are actually using Google search but they just changed the name. what’s your view on that?
Well, the problem I have is that, if Google hasn’t indexed all of your pages, then your visitors will be missing content! I’m sticking with WordPress’ built in search until I have a reason to install Google Search.
I’ve looked into it, but I haven’t found a good enough reason to use it!
thanks saman, that’s new info for me. i gotta change my search function to wordpress then!