Updating the GetQuery Method in CMS 9.0 InSite Search
Version: CMS 9, 9.0.319, 9.x
May 11, 2015
Last updated: 1/30/2021
As of Ingeniux CMS 9.0.319, the GetQuery method has been changed within the Ingeniux.Search.dll assembly. Site implementing InSite Search should update the GetQuery method calls to reflect changes that include a queryAnalyzer.
Open your InSite Search controller in your development environment.
Locate the line where the query variable is defined. (It should begin with something like var query = QueryBuilder.GetQuery.) In the parameters, add Reference.Reference.SiteSearch.DefaultQueryAnalyzer, as shown in the screenshot below.
var query = QueryBuilder.GetQuery(allTerms, categoriesList, typesList);
var query = QueryBuilder.GetQuery(Reference.Reference.SiteSearch.DefaultQueryAnalyzer, allTerms, categoriesList, typesList);
After you've added the new code, save the file.