nxp_monkey.search

design / api / search

search

Kind: function.

Search the local index for parts matching query. Returns a ranked list of SearchHit. Empty list when the index has not been built.

Rationale

The "easy way to find parts" entry point. Partial matches are first-class: searching for "MCXA" returns every MCXA part without needing wildcards. Fuzzy mode adds edit-ratio matches for typos and is opt-in to keep the default output predictable.

Working definition

Given a query that may be a full part number, a family root, or a typo, return the parts a human would expect to see, ordered best-first. The exact scoring is documented in the CLI design doc and may evolve.

part_variants

Kind: function.

Look up the recorded SDK variant list for one part. Wrapper for the common case of "which variants are available for this part" without constructing a PartInfo.