Programmable Search Engine Blog
The latest news, updates and tips from the Programmable Search Engine team
Labels in Custom Search
Thursday, March 27, 2008
Posted by: Phil Liao, Software Engineer
Last month we demonstrated
how to specify URL patterns
in your CSE. We now explain another powerful concept in Custom Search:
labels
, which are also known as
refinements
. Labels are typically displayed above the search results.
Let's revisit our
I Love Veggies
search engine. When the user searches for "eggplant", we display some categorical refinements above her search results such as:
recipes, nutrition, farmer's markets
, and
growing tips
. When she clicks the "recipes" refinement, for example, our CSE emphasizes
eggplant recipes
in her search results.
To make refinements, do the following:
1. Create refinement labels.
To add a refinement to your custom search engine, go to the
Refinements
tab in the control panel, then click the
Add Refinement
button. Enter a refinement label and its associated keywords, and choose how to prioritize the labeled sites. You can enter one of our
predefined refinements
or create one of your own.
2. Tag sites with refinement labels.
Once you have configured your refinements, go to the
Sites
tab in the control panel. Choose some sites (URL patterns) using the checkboxes, then choose a label from the
Label actions
drop-down list. You can attach any number of labels to each site. For example, if a site includes nutritional information with its recipes, you could label it with both the "recipes" and the "nutrition" refinements. Labeling your sites properly enables your users to find sites that are relevant to each refinement. In addition, by showing meaningful labels under each search result, you enable your users to find similar results quickly. The
Custom Search Help Center
has helpful hints on
how to choose good refinements
.
And this is how to create refinements and assign their labels to your sites using the Custom Search control panel. We'll show you advanced refinement management using XML in another post soon.
Archive
2024
Apr
2023
Dec
Oct
Jun
2022
Aug
Jul
Jun
Feb
2021
Apr
Jan
2020
Nov
Oct
Sep
Aug
Jun
Apr
2019
Jul
Jun
Apr
2018
Jul
2017
Jul
Feb
2014
Mar
2013
Dec
Oct
Sep
Mar
Jan
2012
Aug
Jun
May
Mar
Feb
Jan
2011
Dec
Nov
Oct
Sep
Aug
Jul
Jun
Apr
Mar
Feb
Jan
2010
Dec
Nov
Oct
Sep
Aug
May
Apr
Mar
Feb
Jan
2009
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2008
Dec
Nov
Oct
Sep
Aug
Jun
May
Apr
Mar
Feb
Jan
2007
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2006
Dec
Nov
Useful links
Programmable Search Engine
Help Center
Support Forum
Developer Documentation
Google AdSense Blog