Reference documentation for GraphQL schema types in the Search category.
Reason why a semantic or hybrid issue search fell back to lexical search.
LexicalFallbackReasonNON_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.Perform a search across resources, returning a maximum of 1,000 results.
Type: SearchResultItemConnection!
searchafter (String): Returns the elements in the list that come after the specified cursor.before (String): Returns the elements in the list that come before the specified cursor.first (Int): Returns the first n elements from the list.last (Int): Returns the last n elements from the list.query (String!): The search string to look for. GitHub search syntax is supported. For moretype (SearchType!): The types of search items to search within.The results of a search.
SearchResultItemA 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.
SearchResultItemConnectioncodeCount (Int!): The total number of pieces of code that matched the search query. RegardlessdiscussionCount (Int!): The total number of discussions that matched the search query. Regardless ofedges ([SearchResultItemEdge]): A list of edges.issueCount (Int!): The total number of issues that matched the search query. Regardless of theissueSearchType (IssueSearchType): The type of search that was performed for issues (lexical, semantic, or hybrid).lexicalFallbackReason ([LexicalFallbackReason!]): When a semantic or hybrid search falls back to lexical, the reasons why the fallback occurred.nodes ([SearchResultItem]): A list of nodes.pageInfo (PageInfo!): Information to aid in pagination.repositoryCount (Int!): The total number of repositories that matched the search query. Regardless ofuserCount (Int!): The total number of users that matched the search query. Regardless of thewikiCount (Int!): The total number of wiki pages that matched the search query. Regardless ofAn edge in a connection.
SearchResultItemEdgecursor (String!): A cursor for use in pagination.node (SearchResultItem): The item at the end of the edge.textMatches ([TextMatch]): Text matches on the result found.Represents the individual results of a search.
SearchTypeDISCUSSION: 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.A text match within a search result.
TextMatchfragment (String!): The specific text fragment within the property matched on.highlights ([TextMatchHighlight!]!): Highlights within the matched fragment.property (String!): The property matched on.Represents a single highlight in a search result match.
TextMatchHighlightbeginIndice (Int!): The indice in the fragment where the matched text begins.endIndice (Int!): The indice in the fragment where the matched text ends.text (String!): The text matched.