Google Code Search
| Developer(s) | |
|---|---|
| Operating system | Any (web based application) |
| Type | Code search engine |
| Website | code.google.com/codesearch |
Google Code Search was a free beta product from Google which debuted in Google Labs on October 5, 2006 allowing web users to search for open-source code on the Internet. Google announced that Code Search was to be shut down along with the Code Search API on January 15, 2012.[1] The service remained online until March 2013,[2] where upon it now returns a 404.
Features included the ability to search using operators. These are lang:, package:, license: and file:.
The code available for searching was in various formats including tar.gz, .tar.bz2, .tar, and .zip, CVS, Subversion, git and Mercurial repositories.
Contents |
Regular expression engine [edit]
The site allowed the use of regular expressions in queries, which is not offered by any other search engine for code.[citation needed] This makes it resemble grep, but over the world's public code. The methodology employed combines a trigram index with a custom-built, denial-of-service resistant regular expression engine.[3]
Google Code Search supported POSIX extended regular expression syntax, excluding back-references, collating elements, and collation classes.[4]
Supported languages [edit]
The list of officially supported languages was constantly changing. The following list is correct as of 31 December 2010[update]:[5]
Languages not officially supported could be searched for using the file: operator to match the common file extensions for the language.
See also [edit]
References [edit]
- ^ http://googleblog.blogspot.com/2011/10/fall-sweep.html
- ^ http://stackoverflow.com/questions/7778034/replacement-for-google-code-search
- ^ Regular Expression Matching with a Trigram Index or How Google Code Search Worked, Russ Cox, January 2012
- ^ http://www.google.com/intl/en/help/faq_codesearch.html#regexp
- ^ http://www.google.com/codesearch
External links [edit]
- Version of Code search[dead link], limited to projects hosted on Google Code
- Cindex/Csearch - command-line file search tool, based on ideas from GCS