Why are my public repositories not found by GitHub search? #114869
Replies: 5 comments 11 replies
-
It's super annoying when you know your repo is public and should be showing up, but for some reason it's just not there in the search results. First off, you can try to double check a couple things. Make sure your repo is set to public in the settings - I know it sounds obvious, but sometimes it's the little things, you know? Also, take a peek under the "Danger Zone" section in your repo settings and make sure the "Search engine indexing" box is checked. If it's not, GitHub won't include your repo in search results. Another thing to check is that you've got a README file in there. GitHub tends to favor repos with nice README's in their search rankings. If you've got one, great! If not, try adding one and see if that helps. Now, if you've checked all that and your repo still isn't showing up, it could just be that GitHub's search index is a bit behind. Sometimes it takes a while for changes to show up in their search. You could try making a small change to your repo (like editing the README) and pushing it to see if that nudges the search index to update. If none of that works, it might be time to ping GitHub support. They should be able to take a look under the hood and figure out why your repo is being shy in the search results. It's funny though - external search engines like Google and DuckDuckGo seem to have no problem finding your repo! They've got their own search systems that are separate from GitHub's. Guess that's why your repo is popping up first or second in their results. Anyway, I hope some of those suggestions help! If not, definitely reach out to GitHub's support team. They're usually pretty helpful with this kind of thing. Best of luck getting your dent repo to show up where it belongs in those search results! |
Beta Was this translation helpful? Give feedback.
-
@joemar25 Thanks for your reply.
I am, unfortunately, not exactly clear on how to reach out to GitHub's support team on this. That was what I was originally trying to do, but going through the various support pages eventually seemed to lead me here as the option I should choose. (I ended up at https://support.github.com/request and the only one of the fifteen options on that page even vaguely related to my problem is at the bottom, 'Other questions about Git or GitHub?', which links to here. I guess I'll try contacting the 'Account or Billing Issues' link and see if they can eventually get me to the right people to handle my request. |
Beta Was this translation helpful? Give feedback.
-
Repository Visibility Settings: Ensure that your repository is set to be publicly visible. Sometimes, repositories might be set to private or restricted visibility unintentionally, which could affect their appearance in search results. Repository Metadata: GitHub's search algorithm takes into account various metadata associated with repositories, such as the repository name, description, tags, and README content. Ensure that these elements accurately reflect the content and keywords relevant to your repository. From your description, it seems like you've already included relevant keywords like "dent" and "docker", which is a good practice. README Optimization: The README file plays a crucial role in GitHub's search algorithm. Make sure your README contains detailed and relevant information about your project, including keywords and descriptions that potential users might search for. It's also helpful to include installation instructions, usage examples, and any other relevant details to make your repository more discoverable and user-friendly. |
Beta Was this translation helpful? Give feedback.
-
If you search by the terms in the description or use the exact name |
Beta Was this translation helpful? Give feedback.
-
@0cjs you can submit feedback for search result problems via the GitHub Code Search "provide feedback here" modal dialog box on the code search results page, found under the "Why wasn't my code found?" fold: GitHub Code Search: Incidentally, I have a feeling there's a bug or a systemic underlying problem that you might have uncovered. Or maybe your repository was stuck in a dead letter queue or something. Quite curiously, in the last 10 minutes of writing this post, code search and repository results changed between (approximately-ish)
† Banner message: Maybe @look fixed something on the backend? :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
I have a repo https://github.com/cynic-net/dent with tags including
docker
, a description including 'Start a shell in arbitrary Docker containers,' a title at the start of the top-levelREADME.md
of 'dent: Create and Enter Docker Containers,' a file calledbin/dent
, and plenty more that kind of strongly indicates that 'dent' and 'docker' should be good search terms for this.However, when I use the GitHub search functionality to search for 'dent' it finds about 22.7 thousand repos, and mine isn't in the first few pages of that, despite being named exactly
dent
. (The first page, as well as including a repo namedDent
, includes repos namedAlDente-Charge-Limiter
,dentistsmile
,denti
, and so on.)No problem; I know my repo is related to Docker so I'll search for 'dent docker'. This narrows things down quite a bit, to just 7 repos. But mine is not there. (Most are
docker-dental
,dentist-docker
, and so on.)Fine. My
dent
repo is under thecynic-net
org: surely searching for 'dent cynic-net' will turn it up. But no, that produces no results at all.I've seen this with some of my other public repos as well: GitHub search simply doesn't seem to admit that those repos even exist. What's going on with these repos, and how do I get them listed in GitHub search?
As a side note, DuckDuckGo, Google and Bing have no problem at all finding these repos: for the search 'dent docker' my repo is first in DuckDuckGo and Bing results, results and second in Google results.
Beta Was this translation helpful? Give feedback.
All reactions