Add Custom Refiners in the Refinement Panel of Search Results Page For SharePoint 2013 Online

This article shows how to add custom refiners in the Refinement Panel of the Search Results page for SharePoint 2013 Online.

Sign up for an Office 365 Developer Site. Ensure you have access to an Office 365 Developer Site. Here are three ways to get one:

Site Content Type

I have created a site content type that has the following columns:

Site Content Type

Document Library:

I have created a Document Library in which I have attached the “My Content Type” content type and added a few documents.

mydocument

Configure Managed Properties

In this article you will see how to add custom refiners in the Refinement Panel of a Search Results page for SharePoint 2013 Online. I have 2 fields named “Document Category” and “Document Type” that will be added as refiners.

  1. Navigate to SharePoint Admin Center.

  2. Click on the search link on the left navigation.

    search

  3. Click on the Managed Properties link and search for the RefinableString managed property.

    RefinableString managed property

  4. Select RefinableString00, click on the Edit/Map Property.

    Map Property

  5. On the Mappings to crawled properties section, click on Add a Mapping.

    Add a Mapping

  6. Search for Category and select ows_Document_x0020_Category. Click on the OK button.

    Click on Ok button

  7. The Document Category crawled property is mapped to RefinableString00.

    Document Category

  8. Similarly map a Document Type crawled property to RefinableString01.

    Document Type

    property to RefinableString01

    Note: Add only the crawled properties that have an ows_Prefix.

The following describes how to add refiners to the refinement panel:

  1. Navigate to the Enterprise Search Results page.

  2. Then click Edit page.

    Edit the page

  3. Edit the Refinement web part.

    Refinement

  4. Click on Choose Refiners...

    Choose Refiners

  5. Add RefinableString00 and RefinableString01.

    RefinableString01

    RefinableString00

  6. Click on the OK button.

  7. Click on the OK button in the web part properties.

  8. Check in and publish the page.

    Check in and publish

  9. Enter a keyword and then click on the Search button. You will then be able to see the custom refiners in the refinement panel.

    click on Search button

Summary

In this article you saw how to add custom refiners to the Refinement Panel of a Search Results page for SharePoint 2013 Online.

Up Next
    Ebook Download
    View all
    Learn
    View all