-
-
Notifications
You must be signed in to change notification settings - Fork 48
Don't treat + as a special character for queries #193
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
Conversation
If we treat `+` as a special character for queries we run into the problem that we can't create queries like: topic:me+topic AND project:Baz This appears to be equivalent to : topic:me+topic+AND+project:Baz Instead of treating `+` as a special character we can just ensure that queries have the former form.
|
I don't have time to verify this right now. @dmitshur Do you have time to look into this? |
dmitshur
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, moving in this direction makes sense to me. This special behavior for '+' and ':' characters was added in PR #22 to resolve issue #18 (and it happened 9 years ago), but the issue described there seems more like a problem caused by "+" being used instead of " " (a space) in the original search query. When a space is used, it gets escaped to "+" as visible here.
So to me, it makes sense to proceed with this, unless someone can reproduce or clarify issue #18 now. (Perhaps undoing the entire behavior change of #22 is even better.)
|
I had a problem querying for |
|
@dmitshur any chance we can get this merged? |
dmitshur
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we treat
+as a special character for queries we run into the problem that we can't create queries like:topic:me+topic AND project:Baz
This appears to be equivalent to :
topic:me+topic+AND+project:Baz
Instead of treating
+as a special character we can just ensure that queries have the former form.