How to create a simple and robust Google Custom Search Engine (CSE) – Part 2 @SteveRath

Editor’s note: See part 1 of this tutorial, which ran in January, here

But wait – there’s more!!!!

Welcome back – I mentioned earlier of the constraints with the free version? Well here it is – currently, the free version of Google Custom Search limits your results set to 100.

The next few steps will bring the power of the Google CSE to light and allow you to exceed the 100 results limitation.

The power of Refinements/Labels will allow you to exceed the 100 limit. While the free version of CSE is limited to 100 results, you can actually expand this with ‘Refinements/Labels’. While each Label is limited to 100 results, you can add unlimited Labels! So, add 5 labels for 500 results OR add 10 labels for 1000 results.

Step 1. My Refinements are below. To get to the Refinements, click on “Search features”, on the main CSE page, then click on “Refinements” tab, and then click Add.

gcse1

Step 2. Edit/Create your Refinement. I called this label Stackoverflow (see below). Then I selected the “Search only the sites with this label” radial button. The magic occurs when I create the actual refinement – for this example I’m using the site command to pull Stackoverflow profiles. Here you can use Site: cmd or Boolean to create your refinements.

*Note that Google will display “Stackoverflow” as label as you’ll see in Step 9.

GCSE2

Here’s an example of my refinements for the CSE I developed for SoureCon in Denver (2014):

GCSE3

Step 3. Finally when you’re done creating your refinements you’ll need to assign them to the sites you created. To do this you then click on “Label” which will pop-up a pull down menu of your newly created Labels/Refinements.

GCSE4

Here’s another example of the existing sites for the CSE and the Label’s the sites are associated with.

GCSE5

Once you’ve completed adding your Refinements to your CSR, run it, add your search criteria, and you’ll see the labels. See below.

Article Continues Below

Sponsored Content

The Perfect Match: 5 Steps for Building a Connection That Lasts

You wouldn’t buy a house or move to a new city if it wasn’t the right fit, but did you ever think in those terms about a job offer? Would you accept an offer if the company wasn’t a good match?

In this tight labor market, it’s not enough to get a candidate to show interest. You’ve got to get job seekers to connect with your company—so they’ll say yes to the offer. To learn how to attract great candidates by building a connection that lasts, download the free eBook today.

GCSE6

Try the CSE I call SourceCon Den. You can now build your own search engine and add to it as you discover new sites.

CSE SourceCon Denver URL = https://www.google.com/cse/publicurl?cx=003001341109228051923:nfg60s0nv9a

Have fun with it.