index values no lowercase

Kenny Deblaere asked on June 21, 2016 16:20


If I set a value 'searchable' in the Kentico Search fields, it's saved in the index lower case. Is there a way to save the value just like it's entered in the CMS.

For example:

In my CMS I have the field title, with value: Goals scored. It's saved in the index as goals scored. I need to have Goals scored from the index.

Kind regards

Kenny Deblaere

Recent Answers

Trevor Fayas answered on June 21, 2016 16:29

I'm not 100% positive if it's a function of Kentico that can be overwritten with a Custom Search Index or not.

But a quick question, what is the case for having the value saved as is? Usually lucene will lowercase search results so it's quicker to search, when you display your results though you can call any field you want in the transformation.

Search fields are for finding matches, then the "Content" value is saved as is to display the result summary, along with any value you need through the <%# GetSearchValue("MyFieldName") %> which pulls from the document content, not necessarily the smart search index.

0 votesVote for this answer Mark as a Correct answer

Kenny Deblaere answered on June 21, 2016 16:36

I'm combining AngularJS with the Lucene index. Because my index is containing titles and textboxes, it has the purpose to return as-is.

I'm filtering with nodeIds, so I don't have to worry about the speed of filtering text.

0 votesVote for this answer Mark as a Correct answer

Anton Grekhovodov answered on June 22, 2016 14:44

Hi Kenny,

You can create your custom index

And then you can use SearchHelper.AddGeneralField method thereImage Text See the last parameter.

Also, you should check that your search is case-insensitive

0 votesVote for this answer Mark as a Correct answer

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