Exograph.InvertedIndex.Postgres (exograph v0.2.0)

Copy Markdown View Source

Postgres/ParadeDB candidate retrieval backend implemented with Ecto queries.

Structural lookups use the terms integer[] GIN index. Term strings are normalized to integer IDs in the terms table before querying.

Summary

Types

t()

@type t() :: %Exograph.InvertedIndex.Postgres{
  package: Exograph.Package.t() | nil,
  package_version: Exograph.PackageVersion.t() | nil,
  prefix: String.t(),
  repo: module()
}

Functions

resolve_term_ids(index, terms)

search_callees(index, caller, opts \\ [])

search_callers(index, callee, opts \\ [])

search_comments(index, literal, opts \\ [])

search_definitions(index, literal, opts \\ [])

search_references(index, literal, opts \\ [])

search_text(index, literal, opts \\ [])