Sort results

When you enable search results sorting, Custom Search automatically lets you sort results by date and by relevance. If you use PageMaps, meta tags, or rich snippets markup to create structured data on your pages, you can enable also sorting by additional properties used in your markup.

For example, if your content is marked up with Reviews rich snippets, you could enable sorting by rating (number of stars) or other numerical key. If your content includes a PageMap identifying a publication, you can sort results by Publication Date.

Enable search results sorting:

  1. On the Control Panel, click Search features, and then click Advanced.
  2. In the Search Preferences section at the end of the page, select the Enable results sorting checkbox.

    By default Custom Search enables sorting of results by relevancy and by date. If that's all you want, click Save Changes.

  3. (Optional) To add a custom sorting key:
    1. Click Add Key.
    2. In the Key Label box, type the property you want to sort by. This should exactly match the DataObject name (PageMaps) or property (rich snippets) used for your content. (To see the available keys, use the rich snippets testing tool.)
    3. In the Key box, type the key name you want to appear on the search results page. Users will click this name to sort results. 
    4. Click OK.
  4. Click Save Changes.