Smart search not working in Kentico 9 site

Rahul Raghuvanshi asked on September 27, 2016 01:59


I am getting following exception while trying to search on website.

Exception ---------------------------------------------------------------------

EventID: 67213

EventType: E

EventTime: 9/26/2016 4:19:26 PM

Source: Smart search


UserID: 65

UserName: public


EventDescription: Message: Method not found: 'System.String System.String.Format(System.IFormatProvider, System.String, System.Object)'.

Exception type: System.MissingMethodException Stack Trace: at CMS.Search.Lucene3.LuceneSearchValueConverter.IntToString(Int32 value) at CMS.Search.AbstractSearchValueConverter.ConvertToString(Object value) at CMS.Search.SearchHelper.AddGeneralField(ISearchDocument document, String name, Object value, Boolean store, Boolean tokenize, Boolean valueToLower) at CMS.Search.Lucene3.LuceneSearchDocument.AddGeneralField(String name, Object value, Boolean store, Boolean tokenize) at CMS.DataEngine.AbstractInfoBase`1.InsertSearchFieldToDocument(ISearchDocument document, ISearchField field) at CMS.DocumentEngine.TreeNode.GetSearchDocument(ISearchIndexInfo index) at CMS.Search.SearchIndexer.DocumentUpdate(Int32 documentId, SearchTaskInfo taskInfo) at CMS.DocumentEngine.DocumentSearchIndexer.ExecuteUpdateTask(SearchTaskInfo sti) at CMS.Search.SearchIndexer.ExecuteTask(SearchTaskInfo sti) at CMS.Search.SearchTaskInfoProvider.TaskIndexer() at CMS.Search.SearchTaskInfoProvider.RunInternal()

EventUrl: /search-result.aspx?searchtext=solar&searchmode=anyword

EventMachineName: DS42445

EventUserAgent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0


--------------------End exception ----------------------------------------------------------------

Please suggest me how I can fix it?

Regards Rahul

Correct Answer

Michal Samuhel answered on September 27, 2016 09:32

I have been in touch with planeteria in support ticket and they managed to fix this with replacing the DLL. It looks like that during hotfix the DLL was corrupted.

This error was coming from inside LuceneSearchValueConverter. It is used to convert data types for search and within public override string IntToString(int value) there is a simple format for system string formatting to format the output, that is String.Format(Culture, "{0:0000000000}", value); . It looks like this was causing problem,and as it was a system string replacing DLL seems to have fixed the issue.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.