Search LCA database
engine_searchSearch an LCA database for processes, product systems or flows. The database is the one named by engine, else this connection's default. kind scopes to processes, systems, flows, or all (all three in parallel). query='*' (or an empty string) enumerates everything of the given kind — e.g. kind='system', query='*' lists every product system in the database (one page of limit, plus the true total). With kind='flow', flow_type (elementary / product / waste) filters the results; with kind='process', process_type (unit_process / system_process) does. Returns typed refs (p1, e1, f1; a system hit is an e<N> engine-catalog ref, not a workspace s<N>) that stay valid for the session and are accepted by engine_get and lca_run_assessment. scope_ref (any engine ref such as p3/e1/m2 from an earlier result) searches the database that ref came from instead, for comparing across databases; refs minted that way stay bound to that database.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | What to search for. 'all' queries processes, systems, and flows in parallel. | all |
| limit | No | Max results per page (default 20). | |
| query | Yes | Free-text query, matched word by word against dataset names, categories and location codes — there is no meaning-based matching, so the nouns a dataset is named by (a material, a process, a product) find more than a description of the use (`polypropylene injection moulding`, not `plastic plate`). A place matches by name or code (`Switzerland`, `CH`). When no hit contains every word, the closest partial matches come back, labelled as such. Use `*` (or an empty string) to list everything of the given `kind` — the way to enumerate what a database contains. | |
| engine | No | Name of the engine database, as `lca_get(kind='engines')` lists it (case-insensitive). Omitted: this connection's default engine. Not combined with `scope_ref`, which picks the database a ref came from. | |
| offset | No | Start index for pagination (default 0). | |
| flow_type | No | Only meaningful when kind=flow. | |
| scope_ref | No | Optional. An engine ref (`p`/`e`/`f`/`m`) whose database to search instead of the active connection. Omit to search the active connection. | |
| process_type | No | Only meaningful when kind=process. Restrict to unit processes vs aggregated (system) processes. |