Hacker News new | past | comments | ask | show | jobs | submit login

Is the difference that now the basic search functionality actually works?

The previous standard GitHub search I found to be remarkably bad. I would be looking at some small public repo, search for an exact string match I know exists in the code, scope the search to that repo only, and still see zero results. Even copy-pasting a line of code from a file in the repo often resulted in zero matches.




I don't get it too. Maybe one needs to enable something. The search is still useless. Locally I use git-grep.


You might want to consider replacing git-grep with ripgrep.


It seems you still need to enable the feature. Click your user icon in the top right -> choose "Feature preview" in the dropdown -> enable the "New Code Search and Code View" feature.


How that is not standard for the last 10 years is baffling.


Indexing/searching properly such massive data is not easy feat.


Indexing cost doesn't scale with number of searchers


Same experience here. Are there advertisement accounts posting here or something? Legitimately weird.


Ah, you need to log in to get access to the new code search!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: