Configuring HawkSearch Box Widget

Goal

This document provides information for configuring the ‘Hawksearch box’ widget.

Prerequisite

  1. Configured Sitefinity Connector
  2. Created V4 Index
  3. Created V4L Index

Set search results page

  1. Navigate to a Sitefinity page on which you have placed a ‘Hawksearch box’ widget
  2. Open the widget designer
    1. From “Where to display search results“ select a search results page (page with ‘Hawksearch results’ widget)
    2. Select a Search Index
  3. Publish the page

Configuring the Search Field

🚧

Important

This feature is only available for the Vue SDK

  1. Navigate to a Sitefinity page on which you have placed a ‘Hawksearch box’ widget
  2. Open the widget designer
  3. Go to the Advanced section
    1. Input the search box configuration settings in the Data field.
      {"_searchBoxConfig":{"reloadOnEmpty":false,"redirectOnEmpty":false,"redirectToCurrentPage":false}}
      
    2. The configuration fields have the following usage:
      1. reloadOnEmpty - Refresh the search results with an empty keyword, but keeps all other facet selections. This is available if a results widget is dropped on the same page.
      2. redirectOnEmpty - Redirects to the results page even if the search field doesn’t have a keyword
      3. redirectToCurrentPage - If the set redirect page is the current one, forces the page to reload
  4. Click Save
  5. Publish the page

Configure the Suggestion Item

🚧

Important

This feature is only available for the Vue SDK. It is available when one or more of the configured fields on the dashboard for title and link are missing. Also handles multilingual field support.

  1. Navigate to a Sitefinity page on which you have placed a ‘Hawksearch box’ widget
  2. Open the widget designer
    1. Go to the Advanced section, input the configuration settings in the Data field.
      {"_suggestionItem":{"linkField":"link","titleField":"title"}}
      
    2. The configuration fields have the following usage:
      1. titleField - Specifies which autocomplete output field to display as the title
      2. linkField - Specifies which autocomplete output field should be used for the redirect link
  3. Click Save
  4. Publish the page