Smart Search Fields

Chetan Sharma asked on November 30, 2015 13:40

Hi All,

Is it possible to map a non-date field to a date field for Smart Search in Page types "Search fields" settings?

We don't need Date but a category from the document type. Or do I need to build a custom search service and do all manipulations there?

Thanks Chetan

Recent Answers


Timothy Fenton answered on November 30, 2015 15:48

Hello Chetan this is something you would need to build a custom indexer for. By default search fields are indexed as text fields by converting the datetime to a search string using:

SearchValueConverter.DateToString(value);

if you create a custom index like this:

https://docs.kentico.com/display/K82/Creating+custom+smart+search+indexes

you could control what is put in your field and even do some logic before it is inserted as a generalfield

0 votesVote for this answer Mark as a Correct answer

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