Exograph.Hit (exograph v0.1.0)

Copy Markdown View Source

Candidate or verified search hit.

Hit type hierarchy

Exograph returns typed hit structs depending on the search function:

All hit types expose :fragment, :score, and :match fields.

Summary

Types

t()

@type t() :: %Exograph.Hit{
  fragment: Exograph.Fragment.t() | nil,
  fragment_id: Exograph.Fragment.id() | nil,
  match: term(),
  matched_terms: [String.t()],
  score: number()
}

Functions

new(attrs)

with_match(hit, match)