Kentico: Configuring Hawksearch search results widget
In this article you’ll find:
Goal
This article will show you how to work with the Hawsearch search results widget.
Prerequisites
Configured Kentico connector - Kentico: System Settings Setup
Created Index mappings - Kentico: Manage indexes
Enabled page builder functionality - https://docs.xperience.io/developing-websites/page-builder-development
Steps to configure the widget
Once you have set up a page builder supported page, click add widget and click Hawksearch search results.
Hover over the widget and click the settings cogwheel to bring up the widget properties.
Template - You can choose which widget template this widget uses.
Index - You can choose which index this results widget will use from the dropdown menu. Here you can see the previously created index mapping names.
Use permission filtering - Whether the widget uses permission filtering. If enabled, the widget will add the currently authenticated user’s role ids to be checked against the permissions field on the previously indexed documents when sending search requests.
Track click event - If selected, widget will send click event tracking updates to Hawksearch.
Track recommendation click event - If selected, widget will send recommendation click event tracking updates to Hawksearch.
Track page load event - If selected, widget will send page load event tracking updates to Hawksearch.
Track banner click event - If selected, widget will send banner click event tracking updates to Hawksearch.
Track banner impression event - If selected, widget will send banner impression event tracking updates to Hawksearch.
Data - This field is used to send additional parameters to Hawksearch in a JSON format. Example further below.
Associate with Landing Page
You can filter the search results elevating Hawksearch Landing page functionality.
You can find more information about setting Landing Pages in Hawksearch documentation -
Configure Landing Page for the corresponding Hawksearch instance.
Navigate to a Kentico page that has a placed ‘Hawksearch search results’ widget.
Hover over the widget and click the settings cogwheel to bring up the widget properties.
In the Data field enter the Url of your Landing Page in the following format:
{"CustomUrl":"landing-page-url"}
Click Save.