Serach: how works #188393
Replies: 2 comments
-
|
Since your repo is named firewall4 but you searched for firewall, the code search tries to find that exact word in your files. If "firewall" doesn't appear as a standalone word in your code, or if the index hasn't caught up yet, it returns zero results. To fix this and find the repo itself, you can try these two things: Be specific with the repo name: Search for owner:icegood firewall4. The exact match usually keeps it from jumping straight to code search. Force the Repository filter: After the search fails and adds &type=code, just click the Repositories tab on the left sidebar. It will pull up firewall4 instantly. Basically, the search engine is trying to be "smart" by guessing you want code, but it's accidentally skipping the repository match you actually need! |
Beta Was this translation helpful? Give feedback.
-
|
We need to answer: The user asks: "Hello there. I wonder how search works. I have valid repo https://github.com/icegood/firewall4 but search https://github.com/search?q=owner%3Aicegood+firewall instantly adds &type=code and cannot find given repo". They are asking about GitHub search behavior: why does adding owner:icegood firewall automatically add &type=code and not find the repo? Likely because default search type is code when query contains no qualifiers? GitHub search default is "All" but if you search for a term without specifying type, it may default to code? Let's recall: GitHub search UI: when you type a query, you can filter by code, commits, issues, etc. The URL parameter type=code is added when you are on the code search tab. The default search may be "All" but if you click on code tab it adds type=code. The user typed owner:icegood firewall. The search results likely show code matches, not repositories. To find repositories, you need to add type=repositories or use the "Repositories" tab. Or you can use qualifier "repo:"? to search for repositories you can use "type:repositories" or go to the repositories tab. The query owner:icegood firewall will search code by defaul |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hewllo there.
I wonder how search works. I have valid repo https://github.com/icegood/firewall4 but search https://github.com/search?q=owner%3Aicegood+firewall instanly adds &type=code and cannot find given repo
Beta Was this translation helpful? Give feedback.
All reactions