Search the local nxp_monkey index for parts by name or family root.
Partial matches (prefix and substring) are supported by default; pass
--fuzzy to also rank by edit-ratio similarity for typos.
nxp-monkey search QUERY [--fuzzy] [--limit N]
| Arg / flag | Effect |
|---|---|
| QUERY | Case-insensitive search string. |
| --fuzzy | Add edit-ratio matches above 0.55 similarity. |
| --limit N | Maximum number of hits (default 50). |
Tab-separated rows with columns part, family,
score, matched. Ranked descending by score.
Returns exit code 1 with a hint when the index is empty.
| Match | Score |
|---|---|
| exact part match | 1.00 |
| exact family match | 0.95 |
| part prefix | 0.90 |
| family prefix | 0.85 |
| part substring | 0.70 |
| family substring | 0.65 |
| fuzzy ratio | 0.6 × ratio (when above threshold) |
With the global --json flag, search writes
search.json to the working directory (query, hits with
part / family / score / matched) and prints that path on stdout instead
of the table.
nxp_monkey.search("MCXA", fuzzy=False, limit=50)
tests/L0_public_cli/test_search_cli.pytests/L3_public_workflows/test_search.py