Manage result types
You can define how search results are displayed on the search results page by designing the layout using result types. The result layout lets you show useful information directly in the search results so users can quickly find the information they need.
Built-in content types like files and people have a standard layout that can't be modified. Result types are used for Graph Connectors content. When you configure a connector with property mappings, Microsoft Search will use a default search result layout for the connector search results. The label title is the most important; you should always have a property assigned to this label to use the default result layout. However, creating a custom result type for your connector content can make those results more impactful for your users.
When using verticals and connector content, you must create a result type or do the mappings for a default layout. If you do not do either, the vertical will not display any search results.
Understanding result types
Create your own search result layout and override the default search result layout by creating a result type. A search result type is a rule that causes distinct kinds of search results to be displayed differently. It consists of the following parameters:
- One or more conditions to compare each search result against. Examples of conditions are content source and title.
- A result layout to use for search results that meet the conditions. The resulting layout controls how the results that meet the conditions appear on the search results page.
You can use multiple result types for content displayed in a vertical. This may be important when you combine multiple content sources into a single vertical. It can also be used for a more impactful layout even when there is only one content type. For example, in a vertical that displays incident details, you can customize "high severity" incidents to have more prominent colors than "low severity" incidents. This can be done by defining conditions on the 'severity' property in the Rules section.
Create or update result types
The result type management experience is wizard driven, you're guided through steps to define the name, content source, rules, and layout. Result types can be customized at both the organization-level and SharePoint site level.
Manage organization-level result types
- In Microsoft 365 admin center, go to the Result types page in the Customization section.
- To create a new result type, click Add or select an existing one to edit it.
- After configuring your result type, you can review and save it.
Manage site-level result types
- In the Sharepoint site where you want to manage result types, open the settings panel by clicking the gear.
- Select Site information, and then select View all site settings.
- Look for the Microsoft Search section, and then select Configure search settings.
- In the navigation pane, go to Custom experience, and select the Result type.
- To add a result type, click Add. Or, to edit a result type, select the result type in the list.
- After modifying a result type, you can review and save the result type.
Here's a list of common problems you might see and actions to fix them.
|I don't see my result layout on the search page, although I created one.||There may be a delay of a few minutes because these settings are cached. Wait a few minutes and try again.|
|I don't see any content sources on the result type page.||Make sure you have configured connectors and indexed data.|
Odeslat a zobrazit názory pro