search_by_name
Search Reactome database objects by their display name. Supports filtering by class, limiting results, and anchored prefix matching for faster queries.
Instructions
Search objects by _displayName.
Args:
query: Text to look for in the display name.
classes: Optional `_class` filter, e.g. ["Pathway", "Reaction"].
limit: Max results (1-200, default 25).
anchored: If True, match `name LIKE 'query%'` (fast — uses the prefix
index). If False (default), match `'%query%'` — more thorough but a
full scan of the 1.86M-row supertable (~1-2s). There are no FULLTEXT
indexes, so prefer `anchored=True` and/or a `classes` filter for hot
paths.
Returns:
Dict `{count, anchored, results: [{DB_ID, _class, _displayName, stable_id}]}`.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| classes | No | ||
| limit | No | ||
| anchored | No |