Skip to content

Query and search

Read this if you want to get more out of search than a bare question — filtering by date or kind, drilling into results, or browsing your wiki by metadata. (For how an agent should query, see querying from an agent.)

Terminal window
omem query "Q3 budget review"

Returns ranked hits — score, kind, page-id, and a one-line summary each. The score is a rough ranking; read the summaries, don’t just trust the top hit.

Filters combine, so you can narrow precisely:

FlagExampleEffect
--limit / -n-n 20More candidates (good for skimming).
--kind--kind mailOnly one kind.
--source--source local-filesOnly one backend.
--account--account you@co.comOnly one mail/calendar account.
--since--since 2w_agoModified at/after a time.
--format--format jsonMachine-readable output.
Terminal window
omem query "contract terms" --kind mail --since 3m_ago --limit 20

--since filters on the source’s modification time (the file’s mtime, the mail Date), not when OMem ingested it. It accepts Nd_ago / Nw_ago / Nm_ago / Ny_ago or an ISO date.

The progressive-disclosure ladder — go as deep as the question needs:

Terminal window
omem page get a3f9c2bd # the curated page (L1)
omem raw get a3f9c2bd --parsed # the full parsed source (L2)
omem raw get a3f9c2bd # path to the original file (L3, file kind)

Any 8+ character page-id prefix works.

When you want to list rather than rank — “all mail from this account last month” — use wiki ls. It filters by metadata with no scoring:

$

wiki ls also takes --search <text> for a plain substring match on title/abstract (case-insensitive, no ranking) — handy when you know roughly what the title says. For fuzzy or semantic matching, use omem query.