Wednesday, 5 August 2015

Umbraco Lucene search without case sensitivity

I've been working on a new site build in a small team, using Umbraco 7. My task today was to implement site search, and in doing so I had a problem with case sensitivity - searching for "word" did not return results containing "Word". After some investigation it turned out we were using the WhiteSpaceAnalyzer for the indexing. Switching to the StandardAnalyzer solved my case problem.

No comments:

Post a Comment

Comments are moderated, so you'll have to wait a little bit before they appear!