Use Refinements to narrow the scope of search

Let's say you have a custom search engine that allows your users to search for recipes. Some users may want to search for any recipes that include a certain ingredient, but others may only want to see results from vegetarian recipes, for example. Other users might only be interested in desserts. With Refinements, you can add labels to your custom search engine to let users narrow the scope of the search and find the results that are most relevant to them.

In order to use refinements on your search engine, first you have to create some labels and then apply those labels to sites included in your search engine. You can choose whether the results only include sites you've labeled or if those sites are just treated with higher priority.

Create a label:

  1. From the control panel, select the search engine you want to edit.
  2. Click Search features from the menu on the left and then click Refinements.
  3. Click Add.
  4. Enter a label name for the refinement and choose whether labeled sites will be prioritized or the only sites in the results. If you want to further narrow down the search, you can also add optional words which will be added to the user's query when they search within the label.
  5. Click OK.

You can configure your search engine to display the number of refinements to show for a search by selecting the option from the drop down menu from "Max top refinements to show for a search".

Apply a label:

  1. From the control panel, select the search engine you want to edit. 
  2. If you aren't already on the Basics tab, click Setup from the left menu and then click Basics.
  3. Under Sites to search, check one or more sites you want to apply the same label to.
  4. Click Label and check one or more labels to add.