Configuring Hawksearch box widget

In this article you will find:

Goal

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

Prerequisite

Configured Sitefinity connector - Connector: Activation

Created V4 Index -Managing V4 Indexes

Or

Created V4L Index - Managing V4L Indexes

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

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}}

       

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

  1. Click Save

  2. Publish the page

 

Configure the suggestion item

  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

      1. Input the configuration settings in the Data field.

        {"_suggestionItem":{"linkField":"link","titleField":"title"}}
  1. Click Save

  2. Publish the page

Â