Hi Michael,
Please stay with me on this one. Hope I will get it right this time.
With regards to the
web.config patterns. They get used, when you actually switch the escape characters
off from the ResultBox.
This will cause the input query to be validated with the regular expressions in the
web.config and if any of the regexes is
matched, this will be deemed as an invalid input and you should get the corresponding message e.g.(
You can not start your query using wildcards, modify your query and try again..").
If the input is valid, a call follows to the SearchManager.Search methods.
Moreover if this call is made with
escapeChars being TRUE, special chars like "+,*,^, ..." get blanked (in code).
So for example, if you use this method:
| public static IList<ResultItem> Search(string searchQuery, string indexName, int startIndex, int max, string mode, bool escapeChars, out int totalItems) |
and
escapeChars is TRUE special chars like: "+,-,(,),:,^,~,*,?,!, ..." will be blanked in code.
Hope it makes a bit more sense now.
Greetings,
valio b
the Telerik team
Check out
Telerik Trainer, the state of the art learning tool for Telerik products.