diff --git a/content/github/searching-for-information-on-github/searching-code.md b/content/github/searching-for-information-on-github/searching-code.md index a7fc87e911..f03e26fb17 100644 --- a/content/github/searching-for-information-on-github/searching-code.md +++ b/content/github/searching-for-information-on-github/searching-code.md @@ -27,7 +27,8 @@ Due to the complexity of searching code, there are some restrictions on how sear - Only the _default branch_ is indexed for code search.{% if currentVersion == "free-pro-team@latest" %} - Only files smaller than 384 KB are searchable.{% else %}* Only files smaller than 5 MB are searchable. - Only the first 500 KB of each file is searchable.{% endif %} -- Only repositories with fewer than 500,000 files are searchable. +- Only repositories with fewer than 500,000 files are searchable.{% if currentVersion == "free-pro-team@latest" %} +- Only repositories that have had activity or have been returned in search results in the last year are searchable.{% endif %} - Except with [`filename`](#search-by-filename) searches, you must always include at least one search term when searching source code. For example, searching for [`language:javascript`](https://github.com/search?utf8=%E2%9C%93&q=language%3Ajavascript&type=Code&ref=searchresults) is not valid, while [`amazing language:javascript`](https://github.com/search?utf8=%E2%9C%93&q=amazing+language%3Ajavascript&type=Code&ref=searchresults) is. - At most, search results can show two fragments from the same file, but there may be more results within the file. - You can't use the following wildcard characters as part of your search query: . , : ; / \ ` ' " = * ! ? # $ & + ^ | ~ < > ( ) { } [ ]. The search will simply ignore these symbols.