Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQ] [Azure Cognitive Search] Add method to escape Lucene queries #8719

Closed
brjohnstmsft opened this issue Nov 10, 2019 · 1 comment
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. feature-request This issue requires a new behavior in the product in order be resolved. Search
Milestone

Comments

@brjohnstmsft
Copy link
Member

(This issue was created to track this User Voice feedback).

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:
+ - && || ! ( ) { } [ ] ^ " ~ * ? : \ /

Currently there is no built-in method in the SDK, basically the equivalent of UrlEscape, which can do this, so every developer has to create their own implementation.

Note that this is a separate concern from the URL-encoding of search text when sent in the URL query string, or JSON encoding of the search text when sent in the request body. The SDK already handles both of those cases.

@triage-new-issues triage-new-issues bot added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Nov 10, 2019
@brjohnstmsft brjohnstmsft self-assigned this Nov 10, 2019
@triage-new-issues triage-new-issues bot removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Nov 10, 2019
@AlexGhiondea AlexGhiondea added the Client This issue points to a problem in the data-plane of the library. label Feb 11, 2020
@AlexGhiondea AlexGhiondea assigned tg-msft and unassigned AlexGhiondea Feb 11, 2020
@AlexGhiondea AlexGhiondea added this to the [2020] April milestone Mar 3, 2020
@tg-msft tg-msft modified the milestones: [2020] April, [2020] May Apr 6, 2020
@AlexGhiondea AlexGhiondea modified the milestones: [2020] May, [2020] June Apr 27, 2020
@tg-msft tg-msft modified the milestones: [2020] June, [2020] August Jun 9, 2020
@tg-msft tg-msft modified the milestones: [2020] August, Backlog Aug 5, 2020
@xdansmith
Copy link

This issue has been idle for two years. Is this still a planned feature?

@pallavit pallavit closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2023
@pallavit pallavit added the feature-request This issue requires a new behavior in the product in order be resolved. label Dec 6, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Mar 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. feature-request This issue requires a new behavior in the product in order be resolved. Search
Projects
Archived in project
Development

No branches or pull requests

6 participants