Candidate or verified search hit.
Hit type hierarchy
Exograph returns typed hit structs depending on the search function:
Exograph.Hit— structural pattern/selector match fromExograph.search/3Exograph.TextHit— source text match fromsearch_text/3Exograph.CommentHit— comment match fromsearch_comments/3Exograph.DefinitionHit— definition name match fromsearch_definitions/3Exograph.ReferenceHit— reference name match fromsearch_references/3Exograph.CallEdgeHit— call graph edge fromsearch_callers/3/search_callees/3
All hit types expose :fragment, :score, and :match fields.
Summary
Types
@type t() :: %Exograph.Hit{ fragment: Exograph.Fragment.t() | nil, fragment_id: Exograph.Fragment.id() | nil, match: term(), matched_terms: [String.t()], score: number() }