Queries
search
Perform a search across resources, returning a maximum of 1,000 results.
유형: SearchResultItemConnection!
search 의 인수
| 이름 | 설명 |
|---|---|
| Returns the elements in the list that come after the specified cursor. |
| Returns the elements in the list that come before the specified cursor. |
| Returns the first n elements from the list. |
| Returns the last n elements from the list. |
| The search string to look for. GitHub search syntax is supported. For more information, see "Searching on GitHub," "Understanding the search syntax," and "Sorting search results.". |
| The types of search items to search within. |
Objects
SearchResultItemConnection
A list of results that matched against a search query. Regardless of the number of matches, a maximum of 1,000 results will be available across all types, potentially split across many pages.
SearchResultItemConnection에 대한 필드
| 이름 | 설명 |
|---|---|
| The total number of pieces of code that matched the search query. Regardless of the total number of matches, a maximum of 1,000 results will be available across all types. |
| The total number of discussions that matched the search query. Regardless of the total number of matches, a maximum of 1,000 results will be available across all types. |
| A list of edges. |
| The total number of issues that matched the search query. Regardless of the total number of matches, a maximum of 1,000 results will be available across all types. |
| The type of search that was performed for issues (lexical, semantic, or hybrid). |
| When a semantic or hybrid search falls back to lexical, the reasons why the fallback occurred. |
| A list of nodes. |
| Information to aid in pagination. |
| The total number of repositories that matched the search query. Regardless of the total number of matches, a maximum of 1,000 results will be available across all types. |
| The total number of users that matched the search query. Regardless of the total number of matches, a maximum of 1,000 results will be available across all types. |
| The total number of wiki pages that matched the search query. Regardless of the total number of matches, a maximum of 1,000 results will be available across all types. |
SearchResultItemEdge
An edge in a connection.
SearchResultItemEdge에 대한 필드
| 이름 | 설명 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
| Text matches on the result found. |
TextMatch
A text match within a search result.
TextMatch에 대한 필드
| 이름 | 설명 |
|---|---|
| The specific text fragment within the property matched on. |
| Highlights within the matched fragment. |
| The property matched on. |
TextMatchHighlight
Represents a single highlight in a search result match.
TextMatchHighlight에 대한 필드
| 이름 | 설명 |
|---|---|
| The indice in the fragment where the matched text begins. |
| The indice in the fragment where the matched text ends. |
| The text matched. |
Enums
LexicalFallbackReason
Reason why a semantic or hybrid issue search fell back to lexical search.
LexicalFallbackReason의 값
| 이름 | 설명 |
|---|---|
NON_ISSUE_TARGET | Query targets non-issue types (e.g., pull requests). |
NO_ACCESSIBLE_REPOS | Scoped query resolved to zero accessible repositories. |
NO_TEXT_TERMS | Query has only qualifiers and no free text terms. |
ONLY_NON_SEMANTIC_FIELDS_REQUESTED | Query uses an in: qualifier targeting non-semantic fields. |
OR_BOOLEAN_NOT_SUPPORTED | Query contains OR operators (nested boolean qualifiers). |
QUOTED_TEXT | Query contains quoted text requiring exact matches. |
SERVER_ERROR | Embedding generation failed or timed out. |
SearchType
Represents the individual results of a search.
SearchType의 값
| 이름 | 설명 |
|---|---|
DISCUSSION | Returns matching discussions in repositories. |
ISSUE | Returns results matching issues in repositories. |
ISSUE_ADVANCED | Returns results matching issues in repositories. |
ISSUE_HYBRID | Returns results matching issues using hybrid (lexical + semantic) search. |
ISSUE_SEMANTIC | Returns results matching issues using semantic search. |
REPOSITORY | Returns results matching repositories. |
USER | Returns results matching users and organizations on GitHub. |
Unions
SearchResultItem
The results of a search.