Search index stored in lower case

Gleb Itenberg asked on October 26, 2018 07:37

I'v created Smart search Page index. The problem is that all fields a stored in lower case. For example I have object titles and want to display it as is. How can I store data in search index not in lower case but as is?

Recent Answers


David te Kloese answered on October 26, 2018 11:53

Hi is it a custom search index? Check this previous answer: https://devnet.kentico.com/questions/index-values-no-lowercase

Basically pull the data from the original content, or add a custom field and set the ToLower bool to false.

0 votesVote for this answer Mark as a Correct answer

Gleb Itenberg answered on October 26, 2018 12:01

No, it is a Page index, not custom. And I can't use custom index.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on October 26, 2018 12:18

So it's index type is Pages , what Analyzer type have you set?

How are you displaying the result data? In a transformation using something like <%# Eval("YourCustomField") %> to display the result?

0 votesVote for this answer Mark as a Correct answer

Gleb Itenberg answered on October 26, 2018 12:23

Analyzer types are different for different indexes, mainly it is Subset and Simple. Actually I'm getting data using my own search service, geting data from index.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on October 26, 2018 13:28

Due to the changes required for Azure search, the indexing changed a bit and the values are stored in lowercase. Without source code license it is hard to override - only by create custom search index and implementing custom ToLuceneSearchDocument() method and change the valueToLower setting.

0 votesVote for this answer Mark as a Correct answer

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