Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6707ea

Browse files
committed
add screenshots + updates based on reviews
1 parent bd33100 commit e6707ea

11 files changed

Lines changed: 32 additions & 18 deletions
96 KB
Loading
21.5 KB
Loading
28.9 KB
Loading
460 KB
Loading
78.8 KB
Loading
73.2 KB
Loading
122 KB
Loading

content/search-github/github-code-search/about-github-code-search.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Once you are given access to the the new code search and code view beta, you can
3737

3838
## Limitations
3939

40-
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.
40+
We have indexed many public repositories for the new code search (beta), and continue to index more. 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.
4141

4242
The current limitations on indexed code are:
4343
- Vendored and generated code is excluded (as determined by [Enry](https://github.com/go-enry/go-enry))
@@ -47,9 +47,10 @@ The current limitations on indexed code are:
4747

4848
We currently only support searching for code on the default branch of a repository.
4949

50-
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.
50+
Results for any search with the new code search (beta) are restricted to 100 results (10 pages). Sorting is not supported for code search results at this time. This limitation only applies to searching code with the new code search (beta) and does not apply to other types of searches.
5151

5252
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)."
53+
5354
## Feedback and support
5455

5556
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).

content/search-github/github-code-search/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: GitHub Code Search (beta)
3-
intro: 'You can use a wide range of syntax to search {% data variables.product.product_name %}. You can adjust the scope of your search, build and troubleshoot queries, and sort search results with qualifiers.'
3+
intro: 'You can use a wide range of syntax to search {% data variables.product.product_name %}. You can adjust the scope of your search, build and troubleshoot queries, and narrow down search results with qualifiers.'
44
allowTitleToDifferFromFilename: true
55
versions:
66
feature: github-code-search

content/search-github/github-code-search/understanding-github-code-search-syntax.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ For example, the following query:
4040
sparse index
4141
```
4242

43-
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`.
43+
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`, a file with the phrase `index for sparse trees`, and even a file named `index.txt` that contains the term `sparse`.
4444

4545
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)."
4646

4747
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)."
4848

4949
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)."
5050

51-
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)."
51+
You can also use regular expressions in your searches by surrounding the expression in backslashes. For more information on using regular expressions, see "[Using regular expressions](#using-regular-expressions)."
5252

5353
## Query for an exact match
5454

@@ -285,6 +285,4 @@ Note that you'll have to escape any forward slashes within the regular expressio
285285
286286
```
287287
/^App\/src\//
288-
```
289-
290-
288+
```

0 commit comments

Comments
 (0)