Google Code Search: Difference between revisions

Content deleted Content added
m Replaces obsolete tag.
No edit summary
Tags: Manual revert Mobile edit Mobile web edit
 
(17 intermediate revisions by 16 users not shown)
Line 1:
{{Short description|Beta product from Google}}
{{Update|date=December 2018}}
{{Distinguish|Google Code}}
{{Update|date=December 2018}}
{{Infobox website
| name = Google Code Search
Line 22 ⟶ 23:
The code available for searching was in various formats including tar.gz, .tar.bz2, .tar, and .zip, [[Concurrent Versions System|CVS]], [[Subversion (software)|Subversion]], [[git]] and [[Mercurial]] repositories.
 
Google Code Search covered many open-source projects, and as such is different from the "Code Search for Google Open source projects" that was released afterwards.<ref>{{Cite web|url=https://opensource.googleblog.com/2020/04/code-search-for-google-open-source.html|title=Code Search for Google open source projects|website=Google Open Source Blog|access-date=2020-04-01}}</ref><ref>{{Cite web|url=https://cs.opensource.google/|website=cs.opensource.google|access-date=2020-04-01|title=Google Open Source}}</ref>.
 
== Regular expression engine ==
 
The site allowed the use of [[regular expression]]s in queries, which at thethat time was not offered by any other search engine for code.{{Citation needed|date=October 2009}} This makes it resemble [[grep]], but over the world's public code. The methodology employed, sometimes called [[trigram search]], combines a [[trigram]] [[Search engine indexing|index]] with a custom-built, [[ReDoS|denial-of-service]] resistant [[regular expression]] engine.<ref>{{cite web |url = http://swtch.com/~rsc/regexp/regexp4.html |title = Regular Expression Matching with a Trigram Index (or: How Google Code Search Worked) |author = Russ Cox |date = January 2012 |access-date = 2012-01-26 |archive-url = https://web.archive.org/web/20120128183712/http://swtch.com/~rsc/regexp/regexp4.html |archive-date = 2012-01-28 |url-status = live }}</ref>
 
In March 2010, the code of [[RE2 (software)|RE2]], the regular expression engine used in Google Code Search, was made open source.<ref>{{cite web|url=https://opensource.googleblog.com/2010/03/re2-principled-approach-to-regular.html|title=RE2: a principled approach to regular expression matching|publisher=|access-date=2016-09-24|archive-url=https://web.archive.org/web/20160927023834/https://opensource.googleblog.com/2010/03/re2-principled-approach-to-regular.html|archive-date=2016-09-27|url-status=live}}</ref>
Line 38 ⟶ 39:
In October 2011, Google announced that Code Search was to be shut down along with the Code Search API.<ref>{{cite web |last = Horowitz |first = Bradley |url = http://googleblog.blogspot.com/2011/10/fall-sweep.html |title = Official Blog: A fall sweep |publisher = Googleblog.blogspot.com |date = 2011-10-14 |accessdate = 2013-07-09 |archive-url = https://web.archive.org/web/20111123221541/http://googleblog.blogspot.com/2011/10/fall-sweep.html |archive-date = 2011-11-23 |url-status = live }}</ref> The service remained online until March 2013,<ref>{{cite web|url=https://stackoverflow.com/questions/7778034/replacement-for-google-code-search|title=Replacement for Google Code Search?|website=Stack Overflow|access-date=2016-07-25|archive-url=https://web.archive.org/web/20171109120559/https://stackoverflow.com/questions/7778034/replacement-for-google-code-search|archive-date=2017-11-09|url-status=live}}</ref> and it now returns a [[HTTP 404|404]].
 
In January 2012, [[Google developer Russ Cox]] published an overview of history and the technical aspects of the tool, and open-sourced a basic implementation of a similar functionality as a set of standalone programs that can run fast indexed regular expression searches over local code.<ref>{{github|google/codesearch}}</ref>
 
== See also ==
Line 46 ⟶ 47:
* [[Merobase]]
* [[OpenGrok]]
* [[Trigram search]]
 
{{Clear}}
Line 54 ⟶ 56:
== External links ==
* {{webarchive |url=https://web.archive.org/web/20101112131244/http://www.google.com//codesearch |date=12 November 2010 }}
* [https://github.com/google/codesearch Cindex/Csearch] - command-line file search tool, based on ideas from GCS
* [https://cs.chromium.org Version of Code Search], limited to the [[Chromium (web browser)|Chromium]] project
 
{{Google Inc.}}
 
{{Google Inc.LLC}}
[[Category:Beta software]]
 
[[Category:Defunct code search engines]]
[[Category:BetaCode softwaresearch engines]]
[[Category:Defunct codeinternet search engines]]
[[Category:Discontinued Google services|Code Search]]