"special characters" are known to make examine/lucene queries go a bit AWOL.
Just have a simple function which weeds out the potential special characters (perhaps using a reg ex expression). before passing the text through ezSearch.
A clue, would be to update this function :-)
// Cleanse the search term
public string CleanseSearchTerm(string input)
{
return Umbraco.StripHtml(input).ToString();
}
Possible bug when a colon is inserted in search box.
Hi, I found an issue when a user inserts a colon : into the searchbox. The user receives:
Error loading Partial View script (file: ~/Views/MacroPartials/ezSearch.cshtml)
"special characters" are known to make examine/lucene queries go a bit AWOL.
Just have a simple function which weeds out the potential special characters (perhaps using a reg ex expression). before passing the text through ezSearch.
A clue, would be to update this function :-)
Ok, thanks. I will check this out to see if I can prevent it from going AWOL :)
Hi,
I wasn't able to figure it out. What can I add there to prevent search queries from breaking things when special characters are added?
is working on a reply...