-
Notifications
You must be signed in to change notification settings - Fork 115
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(es): Improve match #140
Conversation
…r disabling multi-criteria search
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.
LGTM
# Conflicts: # src/BuildingBlocks/MASA.BuildingBlocks
if (keyword.Equals("*")) | ||
return keyword; | ||
|
||
return $"(*{keyword.Trim('*')}* OR {keyword.Trim('*')} OR *{keyword.Trim('*')} OR {keyword.Trim('*')}*)"; |
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.
- Just need trim once.
- Why should
*-
and-*
?
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.
Processed
@@ -93,7 +93,7 @@ private string CompleteKeyword(string keyword) | |||
if (keyword.Equals("*")) | |||
return keyword; | |||
|
|||
return $"(*{keyword.Trim('*')}* OR {keyword.Trim('*')} OR *{keyword.Trim('*')} OR {keyword.Trim('*')}*)"; | |||
return $"({keyword.Trim('*')} OR *{keyword.Trim('*')} OR {keyword.Trim('*')}*)"; |
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.
Trim once.
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.
Processed
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.
LGTM
Description
Improve match
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: