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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.