Surface the data in Microsoft Search

To make it easier for users to find information that they have permission to see, you can create search verticals and result types to customize the search results in Microsoft SharePoint, Microsoft Office, and Microsoft Search in Bing.

To create and enable a search vertical at the organization level, sign in to the Microsoft 365 admin center by using the Search Administrator role, and do the following:

  1. Go to Settings > Search & intelligence > Customizations.
  2. Go to Vertical, and then select Add.
  3. Provide the following details:
    • Name the vertical: Appliance Parts.

      Screenshot of the "Name the vertical" section with "Appliance Parts" highlighted in the Name box.

    • Content source: The custom connector created with the sample code (Parts Inventory).

      Screenshot of the "Content source" section with the "Parts Inventory" connector selected as the content source

    • Add a query: Leave blank.

    • Filters: Leave blank.

Create a result type

To create a result type:

  1. Go to Settings > Search & intelligence > Customizations.
  2. Go to the Result type tab, and then select Add.
  3. Provide the following details:
    • Name: Appliance Part

      Screenshot of the "Name the result type" section with "Appliance Part" highlighted in the Name box

    • Content source: The custom connector created with the sample code.

      Screenshot of the "Select a content source" section with "Parts Inventory" connector selected as the content source

    • Rules: None

    • Paste contents of result-type.json into the layout designer textbox.

      Screenshot of the "Design layout" section with the JSON pasted

In this step, you'll verify that you've successfully added your data to Microsoft Graph by searching for parts in SharePoint. To verify your data:

  1. Go to the root SharePoint site for your tenant.

  2. Using the search box at the top of the page, search for hinge.

    Example of search results for the word hinge on the Appliance Parts tab.

  3. When the search completes with 0 results, select the Appliance Parts tab. Results from the connector are displayed.

    Example of search results for the word hinge with results showing on the Appliance Parts tab.