SEARCH

How-To Geek

How To Create Your Own Custom Google Search Engine

image

Have you ever wanted to create a custom Google search engine that searches only specific websites? You can easily do this with Google’s Custom Search Engine tool. You can bookmark your search engine and even share it with other people.

This trick works similarly to Google’s site: operator, but you won’t have to type the operator every time you search. It’s particularly useful if you want to search a large number of sites at once.

Creating a Custom Search Engine

To get started, head over to the Google Custom Search Engine page and click the Create a custom search engine button. You’ll need a Google account for this – the search engine will be saved with your Google account.

image

Enter a name and description for your search engine – these can be anything you like.

image

The Sites to search field is the one that really matters. Here, you’ll specify a list of the websites you want to search. For example, if you wanted to search both howtogeek.com and microsoft.com, you’d enter:

howtogeek.com/*

microsoft.com/*

The * character is the wildcard, which can match anything, so the /* characters tell your search engine to search everything on both of these websites.

There are more advanced things you can do with this box – we’ll get back to that in a bit.

image

After clicking Next, you can specify a style for your search results and test the search engine you created.

image

Once you’re happy with your search engine, click the Next button at the bottom of the page and you’ll end up at a page that gives you an embed code for your search engine.

You’re probably not a web developer, so you’ll want to ignore this page. Click the Google Custom Search logo at the top of the page instead.

image

To get to your search engine’s page, click its name in the list of search engines you’ve created.

image

You can bookmark this page for easy access your search engine. You can also share your search engine with anyone by sending them the full URL that appears in your address bar.

image

URL Tricks

You don’t have to specify an entire website while creating your custom search engine.

For example, the custom search engine above searches all areas of microsoft.com. If we do an example search, we might see that there’s useful information coming from windows.microsoft.com and support.microsoft.com, but the results from answers.microsoft.com (Microsoft’s support forum) are not very helpful.

image

To exclude answers.microsoft.com and include the other subdomains, we could use the following URL list while creating a search engine:

howtogeek.com/*
windows.microsoft.com/*
support.microsoft.com/*

Note that there’s no way to exclude a specific subdomain – we can only include the ones we want to search. This list will search only the two subdomains on microsoft.com.

image

There are several other types of URLs you can define in this list:

  • Single Page: You can define only one specific page by entering its URL, such as example.com/page.html. This will include only a single web page in the search engine.
  • Part of a Website: You can use the * character in other ways. For example, the URL support.microsoft.com/kb/* will search only Microsoft Knowledge Base articles. Using the URL example.com/*word* will search all pages on example.com that have word in their URLs.

You can continue fine-tuning the search engine until you’re happy with the results by clicking the back to step 1 link, modifying the URLs, and then performing another test search.

image

Once you’re done, you can even add your custom search engine to your browser’s search bar.

Chris Hoffman is a technology writer and all-around computer geek. He's as at home using the Linux terminal as he is digging into the Windows registry. Connect with him on Google+.

  • Published 09/17/12

Comments (7)

  1. momo

    Does anybody know of a way I could link this to a wiki index? For example, there is a list of chemistry articles (http://en.wikipedia.org/wiki/Index_of_chemistry_articles), could you only search articles linked in that list?

  2. JC

    Isn’t this what Microsoft did with Bing?

  3. John

    Can you use it to search disks/folders on your own computer?

  4. john kabbi

    thank you very much ,cool stuff

  5. Hanif

    John,

    TO search content on your own computer, I recommend installing Google Desktop.
    Grab it from http://www.filehippo.com/download_google_desktop/

  6. BRF

    This is nice, but useful only rarely. The vast majority of the time I’m searching for something precisely because I don’t know which site has the best information. However, many times per day I’m searching for things that need to be filtered by other search parameters. For example, I’m a developer and when I want help I type in “visual studio 2010″ followed by the topic I need help with. I don’t understand why, after all of these years, no browser gives me a list, readily available, of my favorite search filters. Starting to type and seeing the suggested previous searches is not what I want. That’s too noisy and only shows a half dozen matches.

  7. Mike S

    Can you do a feature that shows how to get the old Google Search engine look back, without all the clutter and sidebars, etc? I heard Google doesn’t want to do it, but there are ways. Could you get into that?

    Thanks
    MS

Enter Your Email Here to Get Access for Free:

Go check your email!