Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How do I make the search function not sensitive to uppercase and lowercase letters?
I get different results i when I use uppercase or lowercase.
var resultsList = Umbraco.ContentQuery.Search(searchTerm, Model.GetCultureFromDomains());
Thanks, Josefine
Hi Josefine
If your main goal is to give same result one solution would be to make the searchTerm all lowercase. That way it wouldn't matter what the user inputs.
Best regards Frank
Thank you! 😃
Josefine
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco.ContentQuery.Search - sensitive to upper and lowercase
How do I make the search function not sensitive to uppercase and lowercase letters?
I get different results i when I use uppercase or lowercase.
Thanks, Josefine
Hi Josefine
If your main goal is to give same result one solution would be to make the searchTerm all lowercase. That way it wouldn't matter what the user inputs.
Best regards Frank
Thank you! 😃
Josefine
is working on a reply...