Support for literal (quoted) search queries #58606
Replies: 4 comments 4 replies
-
I think the new search we rolled at out the start of May supports quoted searches for common coding character sets. For example does this not return the results you would expect? https://github.com/search?q=repo%3APowerShell%2FPowerShell+%22get-command%22&type=issues |
Beta Was this translation helpful? Give feedback.
-
This is also an issue when looking for references to specific Jira tickets, e.g. |
Beta Was this translation helpful? Give feedback.
-
We feel this feature request is better aligned in the Code Search & Navigation category. I've gone ahead and moved it for you. Thank you for sharing your request! |
Beta Was this translation helpful? Give feedback.
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Product Feedback
Feature Area
Issues
Body
Problem
(Not sure whether this request belong here, but already started here. Please refer me to the correct repository if that is incorrect)
Several programing and scripting languages use dashes (
-
) and/or dots (.
) in their naming conventions for items as variables and functions. In my specific case I am mainly concerned in PowerShell. PowerShell has a well defined naming convention for functions (also called cmdlets) which is basically:Verb-Noun
. Therefore it is often imperative to be able to search for the complete cmdlet (Verb-Noun
) name as e.g.Write-Output
which currently results in all issues that contain both words (Write
andOutput
). Because these are quiet common words especially in programming issues, a concerned search query results almost in every existing issue rather than just a subset that just contains the literal word/phraseWrite-Output
.This also appears a requirement for several other languages:
See also:
Proposed solution
Support literal searches by e.g. using double quotes, as e.g.:
"Write-Output" in:title
Even the fact that all search keywords that get inserted into the
searchindex
table in the database go through a normalization process, which includes things like removing punctuation from a given string because those are typically considered noise in a search, it should to my opinion be possible to further narrow down the current listed results with the literal phrases in the actual query.Guidelines
Beta Was this translation helpful? Give feedback.
All reactions