locked
Escape characters RRS feed

  • Question

  • According to this page

    https://docs.microsoft.com/en-us/rest/api/searchservice/Lucene-query-syntax-in-Azure-Search?redirectedfrom=MSDN#bkmk_syntax 

    Special characters must be escaped to be used as part of the search text. You can escape them by prefixing them with backslash (\). Special characters that need to be escaped include the following:
    + - && || ! ( ) { } [ ] ^ " ~ * ? : \ /

    Is there a built in method, basically the equivalent of UrlEscape, which can do this, or is every developer actually expected to do their own implementation?


    Thursday, September 28, 2017 8:45 PM

All replies

  • Azure Search does not have any built-in methods to escape special characters.

    This is interesting feedback, please submit your idea on our UserVoice page (https://feedback.azure.com/forums/263029-azure-search) to help us prioritize this request.

    Thursday, September 28, 2017 9:27 PM
  • I posted the idea since I did not find existing one. 

    https://feedback.azure.com/forums/263029-azure-search/suggestions/32114773-provide-method-for-escaping-characters-in-the-sear

    Thursday, November 2, 2017 7:15 PM