Skip to content

Exclusion operator cannot be escaped #7828

@cablechewer

Description

@cablechewer

We should mention that the exclusion operator will be detected in a string and treated as the exclusion character regardless of quotes, and other measures.

For example if you are searching for 56nb3-45hf5-672345 you cannot find this string by using any of these:
'56nb3-45hf5-672345'
"56nb3-45hf5-672345"
56nb3--45hf5--672345 (or variants of this enclosed in quotes) Doubled the character for this sample because that is a way to get some other special characters recognized as string literals in a query.

The correct way to find this string is to replace the minus sign with spaces or the AND keyword.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:docsCategory: SharePoint developer/development documentation relatedarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devtype:archive-old-issueIssues which are closed as tool old for active work

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions