Vibe.Storage.Search.Result (vibe v0.2.1)

Copy Markdown View Source

Typed FTS search result with ranking and snippets.

Summary

Types

snippet_part()

@type snippet_part() :: %{text: String.t(), highlight?: boolean()}

source()

@type source() :: :session | :memory

t()

@type t() :: %Vibe.Storage.Search.Result{
  at: DateTime.t() | nil,
  id: String.t(),
  metadata: map(),
  owner_id: String.t() | nil,
  rank: number() | nil,
  snippet: String.t() | nil,
  snippet_parts: [snippet_part()],
  source: source(),
  text: String.t(),
  title: String.t() | nil
}