-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix language with spaces giving wrong results [#1607] #2038
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2038 +/- ##
=======================================
Coverage 70.73% 70.73%
=======================================
Files 537 537
Lines 14106 14106
=======================================
Hits 9978 9978
Misses 4128 4128
|
@Dagizmo I think the only thing that's missing from this PR is a test that verifies we send through the space in the correct way (I don't think we need to encode it as |
ok, will look into that. |
@@ -117,7 +117,7 @@ public override IReadOnlyList<string> MergedQualifiers() | |||
|
|||
if (Language != null) | |||
{ | |||
parameters.Add(string.Format(CultureInfo.InvariantCulture, "language:\"{0}\"", Language)); | |||
parameters.Add(string.Format(CultureInfo.InvariantCulture, "language:\"{0}\"", Language.ToParameter())); |
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.
Actually found that this part didn't use to Parameter so named languages such as CPlusPlus was parsed as "CPlusPlus" instead of "cpp"
updated :D |
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.
@Dagizmo thanks for the contribution!
release_notes: address encoding of spaces when using Search API |
Fixes #1607