Find for text having special characters

Vote:
 

Do we have a list of characters that are reserved or not expected to be part of string search?

Reason: I have some pages that start with "@" and If i have two pages with similar name, one that starts with @ and other that doesn't and if I search for page starting with @, I don't get this page as first result. Looks like this @ is completely ignored or escaped. Similar behaviour can be seen in EPiServer CMS when you search for a page.

I haven't got chance to validate the other special characters yet so the question, is it not advisable to have pages or blocks that are indexed to start with @ or $ or !.

#207674
Sep 30, 2019 3:49
Vote:
 

That @ symbol is being replaced by space. Some of the symbols get replaced by space and completely ignored. I didn't find the list that you are looking. But better suggestion would be not to use these symbols in the Item (page/block) names.

#207780
Oct 03, 2019 7:32
Dileep D - Oct 03, 2019 16:18
I thought so that it is being ignored but wasn't sure it is replaced by space. Do you have a link for this information so that I can read more about it. Also do you happen to know if this happens only if the word starts with this character or if it is found anywhere in the text search.

Vote:
 

Hi Dileep,
I work for the Epi documentation team and got the following reply from the Find Dev team:


The reserved characters are: + - = && || > < ! ( ) { } [ ] ^ " ~ * ? : \ /

If any of those characters appears in a query, it is escaped to prevent an error. For example, the string John+Doe will be escaped to John\\+Doe.



#207825
Oct 04, 2019 16:42
Vote:
 

Hi Bob,
Thanks for sorting this out.
Find Dev team should add them into documents. That will help developers.

#207834
Oct 05, 2019 6:20
Vote:
 

Thanks Bob, that's going to be very helpful. Appreciate your efforts.

#207935
Oct 08, 2019 18:52
Vote:
 

Thanks Bob. This was really helpful. Appreciate your efforts.

#208477
Oct 24, 2019 17:44
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.