Skip to content

Commit 4d1b017

Browse files
authored
Update "Searching code" article to show that it is legacy for FPT/GHEC except for API (github#37733)
1 parent 1826c64 commit 4d1b017

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

content/search-github/searching-on-github/searching-code.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
11
---
2-
title: Searching code
3-
intro: 'You can search for code on {% data variables.product.product_name %} and narrow the results using these code search qualifiers in any combination.'
2+
title: Searching code {% ifversion code-search-code-view %}(legacy){% endif %}
3+
intro: '{% ifversion code-search-code-view %}You only need to use the legacy code search syntax if you are using the code search API{% else %}You can search for code on {% data variables.product.product_name %} and narrow the results using these code search qualifiers in any combination{% endif %}.'
44
redirect_from:
55
- /articles/searching-code
66
- /github/searching-for-information-on-github/searching-files-in-a-repository-for-exact-matches
77
- /github/searching-for-information-on-github/searching-code-for-exact-matches
88
- /github/searching-for-information-on-github/searching-code
99
- /github/searching-for-information-on-github/searching-on-github/searching-code
10+
allowTitleToDifferFromFilename: true
1011
versions:
12+
fpt: '*'
13+
ghec: '*'
1114
ghes: '*'
1215
ghae: '*'
1316
topics:
1417
- GitHub search
1518
---
19+
{% ifversion code-search-code-view %}
20+
{% note %}
21+
22+
**Note:** This article covers the syntax for legacy code search, which you should only need to use for the [REST API endpoint for searching code](/rest/search#search-code).
23+
24+
For information on the code search syntax that you can use on {% data variables.product.prodname_dotcom_the_website %}, see "[AUTOTITLE](/search-github/github-code-search/understanding-github-code-search-syntax)."
25+
26+
{% endnote %}
27+
{% endif %}
1628

1729
{% data reusables.search.you-can-search-globally %} For more information, see "[AUTOTITLE](/search-github/getting-started-with-searching-on-github/about-searching-on-github)."
1830

0 commit comments

Comments
 (0)