ea_search_and_any_of
Search Enterprise Architect elements by required terms, optionally narrowing to those also matching at least one 'andAnyOf' term. Returns ranked results with match evidence, pagination, and breakdowns.
Instructions
Search Enterprise Architect model elements the same way ea_search does, plus andAnyOf: a required-and-alternative filter. requiredTerms still works exactly as it does on ea_search (conjunction, contiguous substring, terms need not share a field). andAnyOf is an optional list of further terms; when supplied, a result must contain requiredTerms AND at least one andAnyOf term, so it can only ever narrow — it never returns a result requiredTerms alone would not. An empty andAnyOf array applies no filter. For promoting rather than narrowing, use ea_search instead, which offers the same alternatives idea as a rank boost. When no element matches the required terms at all, termMatches reports, per supplied term, whether it matched anywhere in the corpus. Matching elements are returned in results, strongest first, each with a decoded note preview, a truncation flag, and matches — the evidence for why it was returned, capped and strongest-first, with _meta.matches reporting how many were found and withheld. packageScope restricts results to a package and its descendants. Walk a large result set with offset; while rows remain, continuation names the next call. When far more elements match than one window can hold, breakdown reports how they distribute by objectType, stereotype, or packageScope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return (default 25) | |
| offset | No | Zero-based index of the first result to return (default 0). Page by re-calling with the offset carried in continuation. | |
| andAnyOf | No | Terms a result must also contain at least one of, in addition to requiredTerms; never adds results. Use ea_search's boostAnyOf to only reorder instead. | |
| objectType | No | Filter by object type (e.g., Class, UseCase, Activity, Screen, Requirement, Interface, Component) | |
| stereotype | No | Filter by stereotype | |
| packageScope | No | Restrict results to this package and its descendants, given as a package id or name | |
| requiredTerms | Yes | Terms every one of which must occur somewhere in the element's searchable text (names, notes, aliases, attributes, operations, constraints); terms need not share a field; capped at 10 |