GitHub Code Search not returning results from some repositories #18624
Replies: 32 comments 75 replies
-
It's likely because they did not provide any topics while the code remains a minority in the total percentage of code used in the repo. |
Beta Was this translation helpful? Give feedback.
-
Hey @fcrimmins, sorry about that. Were those repositories recently created? We currently have a bug where some recently-created repositories aren't being indexed, which we're working on fixing. Also, can you be more specific about where the term appears in the code? Note that not all code is indexed by the code search preview, e.g. very large files (>300 kB) as well as some vendored or machine-generated code (like minified JS) aren't indexed. |
Beta Was this translation helpful? Give feedback.
-
Is there an update on this? For example, in Pocket OSS repo, searching for But it is obviously present in this README: Things I've tried:
|
Beta Was this translation helpful? Give feedback.
-
Hi. I experience a similar issue when searching code in private repositories, but I'm using GitHub REST API. |
Beta Was this translation helpful? Give feedback.
-
I am also having similar issues. When I perform a search (using the new code search) across our org (internal repos), I get an incomplete result set. For example: If I change to This drastically limits the utility of the new search functionality, as there is no confidence that it will actually return all of the results across a relatively limited set of repos. |
Beta Was this translation helpful? Give feedback.
-
I also face some issues while searching particular keywords inside my I have that particular curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer This command is giving me incomplete results not expected results. Could anyone know is there are any changes that happened to GitHub search rest APIs? |
Beta Was this translation helpful? Give feedback.
-
So do I need to index all the repository on GitHub to search code world
wide.
…On Tue, May 30, 2023, 11:26 PM colinwm ***@***.***> wrote:
Hey @Ayushi-gupta2001 <https://github.com/Ayushi-gupta2001>, your
repository Ayushi-gupta2001/testing-branch wasn't indexed by code search
yet. If you search inside the repo (i.e. visit the repo page, and do a
search from there), you'll trigger it for indexing.
I just did that, so it should be searchable within 10 minutes or so.
—
Reply to this email directly, view it on GitHub
<#18624 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANCQANSOGPHP6YGSBZA6KETXIYYFXANCNFSM5YZKNV3Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
It is incredibly awful that we can't sort by date the code we search on github... |
Beta Was this translation helpful? Give feedback.
-
I have same issue in one private organization that I am member of but not in another private organization. The one with the issue is a newly created organization (~1month). Is there anything that can be done to improve my search experience? |
Beta Was this translation helpful? Give feedback.
-
We are seeing this as a new issue in our repos as well. Searches that used to work are no longer returning results at all for full or partial matches on string. Previously we were only seeing failures when searching just for the numeric portion of strings such as "thisisathing-12345". Note that this is NOT a new repository. |
Beta Was this translation helpful? Give feedback.
-
Is there a way for me to trigger the indexing? I'm trying to do a search in our private repositories but the search results are missing quite a bit of results. |
Beta Was this translation helpful? Give feedback.
-
I have encountered the bug as well in my private repo which seems to impact the accuracy of search results. While this may seem a minor inconvenience in isolated circumstances, it has significant implications in a business context. When we search for specific packages or endpoints within our organization's repository and find no results, we might inaccurately assume that it's safe to decommission them. Naturally, we utilize various techniques to inform our decisions, such as consulting with teams, analyzing logs, and more. However, the absence of any code related to a specific feature strongly suggests that it could be considered for decommissioning. The consequences of such decisions could potentially disrupt our operations or development cycles, impacting the efficiency and productivity of our team. Considering the potentially far-reaching effects of this issue, it would be helpful to hear from you about:
Transparency and timely communication about such issues are crucial to help us manage our workflow, make informed decisions, and mitigate any potential risks. I understand that bugs and errors are part of the iterative nature of software development. However, I believe that open and prompt communication about such issues is important in maintaining trust and providing excellent customer service. Thank you for your attention to this matter. I look forward to hearing from you soon regarding this issue. Kind Regards, |
Beta Was this translation helpful? Give feedback.
-
If you search for kmscon, this repo https://github.com/Aetf/kmscon, |
Beta Was this translation helpful? Give feedback.
-
Hi. I am seeing this same behaviour. This search is only returning a single hit for a particular repo and I know that there are multiple instances of the string "-1.#IND" in that repo. I need to do a search across all of the repos in our organisation as this string needs to be updated in all of our tools. Is it possible to get the repos in the edfenergy org indexed such that I can confident of the search results? Thanks |
Beta Was this translation helpful? Give feedback.
-
Sorry for writing again and notifying everyone again, but is there someone from the Github Team here ? Is someone working on this bug already or did they just give up ? I would really like to know if there will be a solution from Github otherwise I would try to think of an extern fix. |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
We made a private repo as public (with deleting private repo on github and creating new one and pushing data) and figured out that the old private repo's data coming up in the search! So dangerous! :) How to trigger manually a repository to reindex? |
Beta Was this translation helpful? Give feedback.
-
Is there a problem with specific file type/format perhaps? Search yields 0 results: https://github.com/search?q=repo%3Adremio%2Fdremio-oss%20MemoryRun&type=code |
Beta Was this translation helpful? Give feedback.
-
Hi, I've been unable to find any code using search in 2023. |
Beta Was this translation helpful? Give feedback.
-
Hi, I am having the same problem, I am not able to find any code on my repos. Could you reindex it? I've tried common words and no answer. |
Beta Was this translation helpful? Give feedback.
-
I would like to search using all repos in my account and not one repo.
Em qua., 18 de out. de 2023 19:16, Luke Francl ***@***.***>
escreveu:
… Have you tried searching within the repo (repo:jcarlosvale/my-repo-name
<term>)? That should trigger it to be indexed if it is not already.
—
Reply to this email directly, view it on GitHub
<#18624 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAI2NH2KBU3T7DSBVJWDWZTYAAMJPAVCNFSM5YZKNV32U5DIOJSWCZC7NNSXTOKENFZWG5LTONUW63SDN5WW2ZLOOQ5TOMZRHA3TEMY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, I am having the same problem, I am not able to find any code on my repos. example: search: cant find my code my code: https://github.com/yyz945947732/vscode-nue/blob/master/src/extension.js |
Beta Was this translation helpful? Give feedback.
-
@look Search String: "page excluded" |
Beta Was this translation helpful? Give feedback.
-
@look Thanks for improving the code search. I've just noticed that we get "This repository's code has not been indexed yet. Try again later." when using the code search in CTSRD-CHERI/cheribsd and CTSRD-CHERI/cheribsd-ports (e.g., repo:CTSRD-CHERI/cheribsd sys_read, repo:CTSRD-CHERI/cheribsd-ports USE_PKG64) even though these repositories have been around for a long time. freebsd/freebsd-src and freebsd/freebsd-ports which these repositories fork and which are of a similar scale work fine. Is there any way to ask GitHub to see if CTSRD-CHERI/cheribsd and CTSRD-CHERI/cheribsd-ports should be re-indexed? |
Beta Was this translation helpful? Give feedback.
-
Hello! May I ping you @look? From some of the answers above, I can understand that "searching in a repo" causes that repo to be indexed if not yet indexed, and then a previously unsuccessful search may return better results. The issue is that I am not always capable of knowing the exact repo and have to do an open search and grind it down to a repo or so. Is there a way to trigger organization wide reindexing somehow? |
Beta Was this translation helpful? Give feedback.
-
How can we manually trigger an org wide index on our private repos? |
Beta Was this translation helpful? Give feedback.
-
Hi @look can I request reindexing for org: joinhonor? I noticed two repos are no longer showing up in search results (our config repo called I scanned your restrictions/limitations page you linked in an earlier thread and nothing jumped out to me that is immediately wrong with these repos that would cause them to be deleted. Still, please let me know if there is something we should be doing differently. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I'm seeing issues with code searches in the public repo https://github.com/GoogleCloudPlatform/magic-modules For example, searching for |
Beta Was this translation helpful? Give feedback.
-
The only time my search api is working is when the search term is "README" .... truly weird error. |
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.
-
Hi:
When I try a search for the term "Solr" in the Code Search preview, it returns a list of repositories where results were found. However, some repositories which contain the search term are not being returned in the list.
This is across our private repositories. I'm wondering if anyone else has come across this issue.
Thanks,
Francis.
Beta Was this translation helpful? Give feedback.
All reactions