I'm Colin from GitHub's code search team, happy to answer any questions. For more info on how we built this, you can check out our technical blog post from a few months ago https://github.blog/2023-02-06-the-technology-behind-githubs...
GitHub code search is generally available
11–20 of 156 posts
Re: GitHub code search is generally available
#12Re: GitHub code search is generally available
#13I generally like the new code search, but I've got one big gripe: there's no way to sort code results by any kind of proxy for recency. The old code search had the ability to sort by indexed date. This wasn't perfect, but it was something. I like keeping up with who's using my code and whether they're leaving comments or commit chains that outline trouble they're having with it. Sometimes old code pops up in the rece…
Re: GitHub code search is generally available
#14I have missed Google Code Search, which launched in 2006 and was discontinued in 2013. Similar to GitHub's code search, it supported searching by regex and filtering by language etc. - but obviously the amount of code to search through is orders of magnitude larger than it was 10-15 years ago. Still I wonder what took GitHub so long to build this - it's hardly a novel idea, and it seems like such an obvious power too…
Though GitHub will probably have all the same features eventually and cheaper too.
Re: GitHub code search is generally available
#15I have been using since the beta, truly the most impressive product released in the last 5 years (along with chatgpt). The amount of indexed code, the quickness and the precision of this search is simply stunning.
Could you elaborate more on why this is a significant feature? I can see how it would be handy to search a codebase online, especially one you don't have cloned locally, but for my own codebases, I can search the entire thing just fine in VS Code with ctrl-shft-f.
Re: GitHub code search is generally available
#16I don't get the praise over GitHub code search. I find it very inaccurate and often missing references etc. Maybe it depends on the language you are using it with? (Go here)
"today, our new code search and code view are generally available to all users on GitHub.com"
Re: GitHub code search is generally available
#17I have been using since the beta, truly the most impressive product released in the last 5 years (along with chatgpt). The amount of indexed code, the quickness and the precision of this search is simply stunning.
Could you elaborate more on why this is a significant feature? I can see how it would be handy to search a codebase online, especially one you don't have cloned locally, but for my own codebases, I can search the entire thing just fine in VS Code with ctrl-shft-f.
GitHub code search pretty much solves that. For any API you can find an example of someone else using it.
I've been using it for this for a year now and I wouldn't want to live without it.
Re: GitHub code search is generally available
#18I don't get the praise over GitHub code search. I find it very inaccurate and often missing references etc. Maybe it depends on the language you are using it with? (Go here)
Re: GitHub code search is generally available
#19Earlier quoted context omitted.
Could you elaborate more on why this is a significant feature? I can see how it would be handy to search a codebase online, especially one you don't have cloned locally, but for my own codebases, I can search the entire thing just fine in VS Code with ctrl-shft-f.
Ever wanted to use an API and found the documentation to be lacking? GitHub code search pretty much solves that. For any API you can find an example of someone else using it. I've been using it for this for a year now and I wouldn't want to live without it.
Amazing. This was the light bulb moment for me. I work at [big tech co] and we have an internal code search tool, and anytime I need to use a new API I pull it up to find examples of how it's used.
Now I can do this for the entire world of OSS, amazing.
Re: GitHub code search is generally available
#20I generally like the new code search, but I've got one big gripe: there's no way to sort code results by any kind of proxy for recency. The old code search had the ability to sort by indexed date. This wasn't perfect, but it was something. I like keeping up with who's using my code and whether they're leaving comments or commit chains that outline trouble they're having with it. Sometimes old code pops up in the rece…
(I work on code search.) Yeah, sorry about that. We've heard this feedback a lot. There's two reasons why we haven't implemented this. First, content is shared between repositories which makes this harder than before, when it wasn't. Second, we rebuild the index weekly or even more frequently, so the proxy of "when was this added" that was used doesn't work any more. What we would like to use is "when was this blob a…