Search results widget

Use the Search results widget to configure where and how to display the results of a search that a user performed on your website.

PREREQUISITES: You have created at least one search index and have added the Search widget somewhere on your website.

To configure the Search results widget, perform the following:

  1. After you have dragged the Search results widget on your page, click Edit button in the upper-right corner of the widget.
    The Search Results window appears.
  2. Select one or both of the following:
    • Show searchbox above the results
    • Show searchbox below the results
    • If you display the search results on the same page as the search box (where you have dropped the Search widget), you do not need to select any of the above, since the search box will be always displayed.
  3. Under Template select the template which is used to display the news on the webpage.
    You can create a custom template by clicking Create New Template. You can edit existing templates by selecting them and clicking Edit.
    For more information, see Create and edit widget templates.
  4. If you are using a search index that has indexed custom fields or the fields of any dynamic content type, perform the following:
    1. Click Advanced.
    2. Enter the fields in SearchFields input field, separated by commas. 
    3. If you want the search phrase to be highlighted in these fields, enter them also in HighlightedFields input field.
    4. Click Save.
  5. When you are finished, click Save.
    The Search Results window closes and the Search results widget is configured to display the search results.

Filter search results by permissions

Search results in the frontend can be filtered by View permissions of the currently logged in user.
To apply this option, navigate to Administration » Settings » Advanced » Search ​and select Enable filtering queries by view permission.

For more information about advanced configuration options, see Advanced configuration of widgets

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?