1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Code search limitation clarification 11623 (#40585)

Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com>
This commit is contained in:
Viorel Rudareanu
2023-08-24 09:09:12 +01:00
committed by GitHub
parent 94b4506ba7
commit d426bbfb7f

View File

@@ -28,11 +28,15 @@ The current limitations on indexed code are:
- Lines over 1,024 characters long are truncated
- Only UTF-8 encoded files are included
- Very large repositories may not be indexed
- Exhaustive search is not supported
We currently only support searching for code on the default branch of a repository. The query length is limited to 1000 characters.
Results for any search with code search are restricted to 100 results (5 pages). Sorting is not supported for code search results at this time. This limitation only applies to searching code with the new code search and does not apply to other types of searches.
If you use the `path:` qualifier for a file that's in multiple repositories with similar content, {% data variables.product.prodname_dotcom %} will only show a few of those files. If this happens, you can choose to expand by clicking **Show identical files** at the bottom of the page.
Code search 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 "[AUTOTITLE](/search-github/github-code-search/understanding-github-code-search-syntax#symbol-qualifier)."
## Feedback and support