Search of repo returns no code results #44388
-
Select Topic AreaQuestion BodyDoing a search of the following repo returns no code results. Commits, issues, etc are returned. Just no code results. It worked previously, but I noticed a week ago it was no longer returning code results. https://github.com/openhab/openhab-addons The following search should return hundreds of code hits, yet there are zero hits. https://github.com/openhab/openhab-addons/search?q=BaseThingHandler |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments 11 replies
-
It is working on my end. Go to the commits section and you can see commits with messages containing the search query. |
Beta Was this translation helpful? Give feedback.
-
Sorry, what do you mean by "working"? Are you saying that when you execute the following search that you see code results? https://github.com/openhab/openhab-addons/search?q=BaseThingHandler There should be ~397 code results. |
Beta Was this translation helpful? Give feedback.
-
I'm facing a similar issue when trying to search for issues with a user + repo. This is the API url I'm trying to get issues information: https://api.github.com/search/issues?q=A%20repo:luizfm/github-blog-reactjs It returns Am I doing the wrong query here? This is the repo url https://github.com/luizfm/github-blog-reactjs. Btw, I'm commenting on this post because it seems to be a general issue with the |
Beta Was this translation helpful? Give feedback.
-
Same bug for me, but only on certain repositories, like PHP: https://github.com/php/php-src/search?q=http_response_code This returns 0 Code results (even though that string certainly appears in the code). Whereas, on other repos, code search is working: https://github.com/jasonrohrer/minorGems/search?q=SimpleVector This returns 69 Code results, which sounds about right. Maybe it has something to do with the size of the repo? MinorGems is tiny, where PHP is big. |
Beta Was this translation helpful? Give feedback.
-
I don't think it has anything to do with the size. There are repos out there that are way bigger than https://github.com/openhab/openhab-addons where search works just fine. BTW, I joined GitHub's new "Code Search and Code View" beta. Searching https://github.com/openhab/openhab-addons and https://github.com/php/php-src/search?q=http_response_code works just fine. I suspect the new "Code Search and Code View" uses different indexes (and different indexing tech for that matter). Another data point is that you can place the contents of https://github.com/openhab/openhab-addons into a new repo (not a fork) and searching works fine. Tends to make me believe there's index corruption that needs to be repaired/rebuilt. But I have no idea how to do that, or who to ask to do it. |
Beta Was this translation helpful? Give feedback.
-
Joining the new "Code Search and Code View" beta resolved the problem for me, as the new search doesn't have any problem searching the repo. It seems to take only a day or so to get added to the beta. |
Beta Was this translation helpful? Give feedback.
-
FWIW, I had been using the new code search feature but stopped for similar reasons – even using the browser's built-in search functionality failed to find results in a page even though I knew they were there. And I thought it couldn't get any worse, but here we are with the "stable" search functionality broken to an even more severe degree… |
Beta Was this translation helpful? Give feedback.
-
Same issue here, I posted in community. https://github.com/orgs/community/discussions/38692#discussioncomment-5027770 |
Beta Was this translation helpful? Give feedback.
-
Just try searching anything here: https://github.com/hwchase17/langchain no code results! Search is broken |
Beta Was this translation helpful? Give feedback.
-
No results returned for code at https://github.com/videolan/vlc either. |
Beta Was this translation helpful? Give feedback.
-
I have similar issues with private repos. |
Beta Was this translation helpful? Give feedback.
-
Experiencing the same issue as well for Search API with many public repos (200 response for all). |
Beta Was this translation helpful? Give feedback.
-
Pretty much all our Private repos are not returning search results. |
Beta Was this translation helpful? Give feedback.
Joining the new "Code Search and Code View" beta resolved the problem for me, as the new search doesn't have any problem searching the repo. It seems to take only a day or so to get added to the beta.