Recollect.Search.Graph (recollect v0.5.1)

Copy Markdown View Source

Graph-based search using PostgreSQL recursive CTEs. Provides neighborhood expansion and relation queries.

Summary

Functions

Follow edges from entry IDs (Tier 2 lightweight edges). Returns related entries within N hops.

Get the subgraph around an entity within N hops.

Get all relations for an entity.

Functions

follow_edges(entry_ids, opts \\ [])

Follow edges from entry IDs (Tier 2 lightweight edges). Returns related entries within N hops.

neighborhood(entity_id, opts \\ [])

Get the subgraph around an entity within N hops.

Options

  • :owner_id (required) — scope
  • :hops — traversal depth (default: 2)

relations(entity_id, opts \\ [])

Get all relations for an entity.

Options

  • :owner_id (required)