nxp_monkey.index

design / api / index

build_index

Kind: function.

Build or refresh the local SQLite + FTS5 index from the KEX portfolio map. Returns an IndexMeta describing the build.

Rationale

The index is what makes search fast and offline. It is rebuilt explicitly (never implicitly) so the cost is visible to the user and reproducible for tests.

probe_variants flag

By default the index records the assumed default variant set without hitting upstream per family. With probe_variants=True, each family is probed and only present variants are recorded. The probed mode is accurate but costs roughly one extra request per family.

get_part

Kind: function.

Look up one part by name (case-insensitive). Returns None when the part is not present or the index has not been built.

open_index

Kind: function.

Open a connection to the index SQLite database. Defaults to read-only. Provided for downstream tools and tests that need to walk the schema directly.

index_meta

Kind: function.

Return the metadata sidecar describing the most recent index build, or None when no index exists.