With Google Co-op you can create a custom search engine, in which you can define what sites to search in, you can place it anywhere on your page and set the desired colors for it. There are still a few thicks that can be applied to the Google Custom Search Form to enhance your search. Therefore using more input or hidden variables you can alter the query sent to Google so that the results will be more accurate.

This is the code for a Google Custom Search Form
<!– Google CSE Search Box Begins –>
<form action=”http://” id=”*****”>
<input type=”hidden” name=”cx” value=”******” />
<input type=”hidden” name=”cof” value=”FORID:11″ />
<input type=”text” name=”q” size=”25″ />
<input type=”submit” name=”sa” value=”Search” />
<!– Google CSE Search Box Ends –>

And now for the fun part where you will see the things you can teach your custom search engine:

1. Site Search
With this option you can narrow the search just to a site or a number of sites.
<input type=”hidden” name=”as_sitesearch” value=”example.com”>

2. URL Component
Using this option will reveal only the URLs that contain the specified component
<input type=”hidden” name=”hq” value=”inurl:docs”>

3. File Type
The results will be filtered by file type.
<input type=”hidden” name=”as_filetype” value=”PDF”>

4. Number of Results
This will tell the search engine how many results to show on a page. The value must be between 1 and 100.
<input type=”hidden” name=”num” value=”15″>

5. Date Range
Use this option to narrow the results to those indexed within the stated number of months.
<input type=”hidden” name=”as_qdr” value=”m3″>

Each of these syntaxes must by entered before the </form> line. At this address you can find a fully customized Google Custom Search Engine.

If you enjoyed this post consider subscribing to my full RSS feed. You can also subscribe by e-mail to have all new posts sent to your inbox.