diff --git a/content/search-github/github-code-search/about-github-code-search.md b/content/search-github/github-code-search/about-github-code-search.md index 0aa9d96d6e..af9a7e20f5 100644 --- a/content/search-github/github-code-search/about-github-code-search.md +++ b/content/search-github/github-code-search/about-github-code-search.md @@ -1,6 +1,6 @@ --- title: About GitHub Code Search (beta) -intro: 'You can search, navigate and understand code across GitHub with GitHub Code Search (beta).' +intro: 'You can search, navigate and understand code across GitHub with the new code search (beta).' allowTitleToDifferFromFilename: true versions: feature: github-code-search @@ -16,28 +16,28 @@ topics: {% endnote %} -## About GitHub Code Search (beta) +## About the new code search (beta) -GitHub Code Search (beta) lets you rapidly search, navigate and understand your code, your team's code, and the code of the open source community, all from {% data variables.product.prodname_dotcom_the_website %}. This search engine is designed to be scalable, code-aware, and support searching code across GitHub using regular expressions, boolean operations, specialized qualifiers, and symbol search. For more information on the syntax of GitHub Code Search (beta), see "[Understanding GitHub Code Search (beta) syntax](/search-github/github-code-search/understanding-github-code-search-syntax)." +The new code search (beta) lets you rapidly search, navigate and understand your code, your team's code, and the code of the open source community, all from {% data variables.product.prodname_dotcom_the_website %}. This search engine is designed to be scalable, code-aware, and support searching code across GitHub using regular expressions, boolean operations, specialized qualifiers, and symbol search. For more information on the syntax of the new code search (beta), see "[Understanding GitHub Code Search (beta) syntax](/search-github/github-code-search/understanding-github-code-search-syntax)." -On top of the new code search engine, GitHub Code Search (beta) includes new features in the search interface on {% data variables.product.prodname_dotcom_the_website %}, allowing you to more quickly and easily find what you are looking for, including suggestions, completions, and the ability to save your searches. For more information, see "[Using GitHub Code Search (beta)](/search-github/github-code-search/using-github-code-search)." +On top of the new code search engine, the new code search (beta) includes new features in the search interface on {% data variables.product.prodname_dotcom_the_website %}, allowing you to more quickly and easily find what you are looking for, including suggestions, completions, and the ability to save your searches. For more information, see "[Using GitHub Code Search (beta)](/search-github/github-code-search/using-github-code-search)." {% data reusables.search.non-code-search-explanation %} -GitHub Code Search (beta) is tightly integrated with a redesigned code view (beta) on {% data variables.product.prodname_dotcom_the_website %}. {% data reusables.search.code-view-link %} +The new code search (beta) is tightly integrated with a redesigned code view (beta) on {% data variables.product.prodname_dotcom_the_website %}. {% data reusables.search.code-view-link %} -To get access to GitHub Code Search (beta), along with the new code view, you can sign up for the [waitlist](https://github.com/features/code-search-code-view/signup). +To get access to the new code search (beta), along with the new code view, you can sign up for the [waitlist](https://github.com/features/code-search-code-view/signup). -## Enabling and disabling GitHub Code Search (beta) +## Enabling and disabling the new code search and code view (beta) -Once you are given access to the GitHub Code Search and Code View beta, you can enable or disable GitHub Code Search on {% data variables.product.prodname_dotcom_the_website %} anytime. Note that this setting applies to both the search and the code view. +Once you are given access to the the new code search and code view beta, you can enable or disable the beta on {% data variables.product.prodname_dotcom_the_website %} anytime. Note that this setting applies to both the code search and the code view. {% data reusables.feature-preview.feature-preview-setting %} 1. To the right of "New Code Search and Code View (Beta)", click **Enable** or **Disable**. ## Limitations -We have indexed more than 10 million public repositories for GitHub Code Search (beta). Additionally, the private repositories of GitHub users in the beta are indexed and searchable by beta participants that already have access to those private repositories on GitHub.com. However, very large repositories may not be indexed at this time, and not all code is indexed. +We have indexed more than 10 million public repositories for the new code search (beta). Additionally, the private repositories of GitHub users in the beta are indexed and searchable by beta participants that already have access to those private repositories on GitHub.com. However, very large repositories may not be indexed at this time, and not all code is indexed. The current limitations on indexed code are: - Vendored and generated code is excluded (as determined by [Enry](https://github.com/go-enry/go-enry)) @@ -47,9 +47,9 @@ The current limitations on indexed code are: We currently only support searching for code on the default branch of a repository. -Results for any search with GitHub Code Search (beta) are restricted to 100 results (10 pages). This limitation only applies to searching code with GitHub Code Search (beta) and does not apply to other types of searches. +Results for any search with the new code search (beta) are restricted to 100 results (10 pages). This limitation only applies to searching code with the new code search (beta) and does not apply to other types of searches. -GitHub Code Search (beta) supports searching for symbol definitions in code, such as function or class definitions, using the `symbol:` qualifier. However, note that the `symbol:` qualifier only searches for definitions and not references, and not all symbol types or languages are fully supported yet. For a list of what languages are supported, see "[Symbol qualifier](/search-github/github-code-search/understanding-github-code-search-syntax#symbol-qualifier)." +The new code search(beta) supports searching for symbol definitions in code, such as function or class definitions, using the `symbol:` qualifier. However, note that the `symbol:` qualifier only searches for definitions and not references, and not all symbol types or languages are fully supported yet. For a list of what languages are supported, see "[Symbol qualifier](/search-github/github-code-search/understanding-github-code-search-syntax#symbol-qualifier)." ## Feedback and support -You can view and share feedback about GitHub Code Search (beta) in our [discussion forum](https://github.com/orgs/community/discussions/categories/code-search-and-navigation). \ No newline at end of file +You can view and share feedback about the new code search (beta) in our [discussion forum](https://github.com/orgs/community/discussions/categories/code-search-and-navigation). \ No newline at end of file diff --git a/content/search-github/github-code-search/understanding-github-code-search-syntax.md b/content/search-github/github-code-search/understanding-github-code-search-syntax.md index 39463fc531..1db9a1f316 100644 --- a/content/search-github/github-code-search/understanding-github-code-search-syntax.md +++ b/content/search-github/github-code-search/understanding-github-code-search-syntax.md @@ -16,9 +16,9 @@ topics: {% endnote %} -## About the GitHub Code Search query structure +## About the new code search (beta) query structure -The search syntax in this article only applies to searching code with the GitHub Code Search (beta) enabled. {% data reusables.search.non-code-search-explanation %} +The search syntax in this article only applies to searching code with the new code search (beta) enabled. {% data reusables.search.non-code-search-explanation %} Search queries consist of search terms, consisting of text you want to search for, and qualifiers, which narrow down the search. @@ -42,11 +42,11 @@ sparse index The search results would include all documents containing both the terms `sparse` and `index`, in any order. As examples, it would match a file containing `SparseIndexVector`, or even the phrase `index for sparse trees`. -Searching for multiple terms separated by whitespace is the equivalent to the search `hello AND world`. Other boolean operations, such as `hello OR world`, are also supported in GitHub Code Search (beta). For more information about boolean operations, see "[Using boolean operations](#using-boolean-operations)." +Searching for multiple terms separated by whitespace is the equivalent to the search `hello AND world`. Other boolean operations, such as `hello OR world`, are also supported in the new code search (beta). For more information about boolean operations, see "[Using boolean operations](#using-boolean-operations)." -GitHub Code Search (beta) also supports searching for an exact string, including whitespace. For more information, see "[Query for an exact match](#query-for-an-exact-match)." +The new code search (beta) also supports searching for an exact string, including whitespace. For more information, see "[Query for an exact match](#query-for-an-exact-match)." -You can narrow your code search with specialized qualifiers, such as `repo:`, `language:` and `path:`. For more information on the qualifiers you can use in GitHub Code Search (beta), see "[Using qualifiers](#using-qualifiers)." +You can narrow your code search with specialized qualifiers, such as `repo:`, `language:` and `path:`. For more information on the qualifiers you can use in the new code search (beta), see "[Using qualifiers](#using-qualifiers)." You can also use regular expressions in your searches by surrounding the expression in slashes. For more information on using regular expressions, see "[Using regular expressions](#using-regular-expressions)." @@ -72,7 +72,7 @@ path: git language: "protocol buffers" ## Using boolean operations -The GitHub Code Search (beta) supports boolean expressions. You can use the operators `AND`, `OR`, and `NOT` to combine search terms. +The new code search (beta) supports boolean expressions. You can use the operators `AND`, `OR`, and `NOT` to combine search terms. By default, adjacent terms separated by whitespace are equivalent to using the `AND` operator. For example, the search query `sparse index` is the same as `sparse AND index`, meaning that the search results will include all documents containing both the terms `sparse` and `index`, in any order. @@ -121,7 +121,7 @@ repo:github/linguist OR repo:tree-sitter/tree-sitter {% note %} -**Note:** GitHub Code Search does not currently support regular expressions or partial matching for repository names, so you will have to type the entire repository name (including the user prefix) for the `repo:` qualifier to work. +**Note:** The new code search beta does not currently support regular expressions or partial matching for repository names, so you will have to type the entire repository name (including the user prefix) for the `repo:` qualifier to work. {% endnote %} @@ -141,7 +141,7 @@ user:octocat {% note %} -**Note:** GitHub Code Search does not currently support regular expressions or partial matching for organization or user names, so you will have to type the entire organization or user name for the qualifier to work. +**Note:** The new code search beta does not currently support regular expressions or partial matching for organization or user names, so you will have to type the entire organization or user name for the qualifier to work. {% endnote %} @@ -273,7 +273,7 @@ log4j NOT is:archived ## Using regular expressions -GitHub Code Search (beta) supports regular expressions to search for patterns in your code. You can use regular expressions in bare search terms as well as within many qualifiers, by surrounding the regex expression in backslashes. +The new code search (beta) supports regular expressions to search for patterns in your code. You can use regular expressions in bare search terms as well as within many qualifiers, by surrounding the regex expression in backslashes. For example, to search for the regular expression `sparse.*index`, you would use: diff --git a/content/search-github/github-code-search/using-github-code-search.md b/content/search-github/github-code-search/using-github-code-search.md index 96ce4061a9..ead7c1ad0b 100644 --- a/content/search-github/github-code-search/using-github-code-search.md +++ b/content/search-github/github-code-search/using-github-code-search.md @@ -16,19 +16,19 @@ topics: {% endnote %} -## About using GitHub Code Search (beta) +## About using the new code search (beta) -Upon getting access to the GitHub Code Search beta, GitHub will index any repositories you own and any repositories in organizations you are a member of, whether public, private, or internal. This means that you can search across all of your repositories, in addition to the public repositories on {% data variables.product.prodname_dotcom_the_website %} that have already been indexed. Only users with permission to view your code on {% data variables.product.prodname_dotcom_the_website %} will be able to see your code in search results. +Upon getting access to the new code search beta, GitHub will index any repositories you own and any repositories in organizations you are a member of, whether public, private, or internal. This means that you can search across all of your repositories, in addition to the public repositories on {% data variables.product.prodname_dotcom_the_website %} that have already been indexed. Only users with permission to view your code on {% data variables.product.prodname_dotcom_the_website %} will be able to see your code in search results. Not all code is indexed, and you can currently only search the default branches of repositories. For more information on known limitations, see "[About GitHub Code Search (beta)](/search-github/github-code-search/about-github-code-search#limitations)." -The GitHub Code Search beta is integrated within the new code view beta. {% data reusables.search.code-view-link %} +The new code search beta is integrated within the new code view beta. {% data reusables.search.code-view-link %} ## Using the search bar -On top of the new code search engine, the GitHub Code Search (beta) includes an upgraded search interface on {% data variables.product.prodname_dotcom_the_website %}. Using suggestions, completions, and saved searches, you can quickly find what you are looking for, often without having to fully type a query or view the search results page. +On top of the new code search engine, the beta includes an upgraded search interface on {% data variables.product.prodname_dotcom_the_website %}. Using suggestions, completions, and saved searches, you can quickly find what you are looking for, often without having to fully type a query or view the search results page. -For more information about the search syntax of GitHub Code Search (beta), see "[Understanding GitHub Code Search (beta) syntax](/search-github/github-code-search/understanding-github-code-search-syntax)." +For more information about the search syntax of the new code search (beta), see "[Understanding GitHub Code Search (beta) syntax](/search-github/github-code-search/understanding-github-code-search-syntax)." {% data reusables.search.non-code-search-explanation %} @@ -52,7 +52,7 @@ If you click again on the search bar, you can now see your saved search in the " ## Using the search results view -This search results view already existed for the current search on GitHub, and the functionality for most search types, except code, is the same. With GitHub Code Search beta enabled, the search results page has a redesigned UI and includes filters that are part of the new code search engine, such as path and symbol filters. +This search results view already existed for the current search on GitHub, and the functionality for most search types, except code, is the same. With the new code search beta enabled, the search results page has a redesigned UI and includes filters that are part of the new code search engine, such as path and symbol filters. To construct a search query and view, sort, and filter results using a visual interface, you can use {% data variables.search.search_page_url %} or {% data variables.search.advanced_url %}. diff --git a/data/reusables/search/classic-search-code-search-note.md b/data/reusables/search/classic-search-code-search-note.md index 0ba6762993..0aa53d8388 100644 --- a/data/reusables/search/classic-search-code-search-note.md +++ b/data/reusables/search/classic-search-code-search-note.md @@ -1,3 +1,3 @@ -This article refers to the classic GitHub search experience. If you are participating in the new GitHub Code Search and code view beta and have enabled GitHub Code Search, the syntax for searching code and the GitHub.com search interface will differ. However, the search syntax for non-code search types will stay the same.

+This article refers to the classic GitHub search experience. If you are participating in the new code search and code view beta and have enabled it, the syntax for searching code and the GitHub.com search interface will differ. However, the search syntax for non-code search types will stay the same.

-For information about the new GitHub Code Search and code view, currently in limited public beta, see "[About GitHub Code Search (beta)](/search-github/github-code-search/about-github-code-search.md)." To try out the new GitHub Code Search and code view (beta), join the [waitlist](https://github.com/features/code-search-code-view/signup). \ No newline at end of file +For information about the new code search and code view, currently in limited public beta, see "[About GitHub Code Search (beta)](/search-github/github-code-search/about-github-code-search.md)." To try out the new code search and code view beta, join the [waitlist](https://github.com/features/code-search-code-view/signup). \ No newline at end of file diff --git a/data/reusables/search/code-search-code-view-beta-note.md b/data/reusables/search/code-search-code-view-beta-note.md index bf1d3b4d20..aa43ef2917 100644 --- a/data/reusables/search/code-search-code-view-beta-note.md +++ b/data/reusables/search/code-search-code-view-beta-note.md @@ -1 +1 @@ -The new GitHub Code Search and code view are in limited public beta. To join the waitlist for access, navigate to https://github.com/features/code-search-code-view/signup. \ No newline at end of file +The new code search and code view are in limited public beta. To join the waitlist for access, navigate to https://github.com/features/code-search-code-view/signup. \ No newline at end of file diff --git a/data/reusables/search/code-search-link.md b/data/reusables/search/code-search-link.md index 9cec718231..6dd04ec298 100644 --- a/data/reusables/search/code-search-link.md +++ b/data/reusables/search/code-search-link.md @@ -1 +1 @@ -For more information on the new GitHub Code Search, see "[About GitHub Code Search](content/search-github/github-code-search/about-github-code-search.md)." \ No newline at end of file +For more information on the new code search, see "[About GitHub Code Search](content/search-github/github-code-search/about-github-code-search.md)." \ No newline at end of file diff --git a/data/reusables/search/non-code-search-explanation.md b/data/reusables/search/non-code-search-explanation.md index 2da65e6b5f..0777e2be81 100644 --- a/data/reusables/search/non-code-search-explanation.md +++ b/data/reusables/search/non-code-search-explanation.md @@ -1 +1 @@ -Note that the syntax and qualifiers for searching for non-code content, such as issues, users, and discussions, work the same as before. For more information on non-code search, see "[About search on GitHub](/search-github/getting-started-with-searching-on-github/about-searching-on-github.md)" and "[Searching on GitHub](/search-github/searching-on-github)." \ No newline at end of file +Note that the syntax and qualifiers for searching for non-code content, such as issues, users, and discussions, work the same as before. For more information on non-code search, see "[About searching on GitHub](/search-github/getting-started-with-searching-on-github/about-searching-on-github)" and "[Searching on GitHub](/search-github/searching-on-github)." \ No newline at end of file