Goal
The purpose of this article is to provide you with the necessary information in order to successfully migrate your widget templates to version x.xxxx.x.30 of the Hawksearch Connector.
Prerequisite
Configure Connector - Configure Hawksearch
Steps to migrate
With the introduction of this version the Hawksearch connector no longer uses Lucene and Elastic in it’s terminology or source code. These terms were replaced with corresponding version which are:
Hawksearch Version | Corresponding meaning |
---|---|
V2L | Clients on the first version of Hawksearch |
V3L | Clients on Older Lucene Template |
V4L | Latest Version with Lucene |
V4 | Elastic Search Version |
In order to address these changes the IsElastic checkbox has been replaced with a configuration dropdown with the above mentioned versions. You can find it in the advanced settings.
The SearchBoxViewModel and the SearchViewModel which transfer the information to the widget templates no longer contain a property bool IsElastic {get; set;}
. The view models now contain the following property string Version {get; set;}
which holds the version which has been specified in the advanced settings. Please migrate to the new Version property and use it to do the necessary checks.
Examples
If you want to check which Hawksearch version is being used to the following:
@if (Model.Version == "V4L") { //Your code here } else if (Model.Version == "V4") { //Your code here }