* Nodes whose name CONTAINS `substring` (LIKE scan, ASCII-case-insensitive, * shortest-first). The camel-infix lookup FTS can't do — `profileInfo` * inside `getProfileInfoV2` is one FTS token (#1196).
(
substring: string,
options: { kinds?: NodeKind[]; limit?: number; excludePrefix?: boolean } = {}
)
| 2727 | * inside `getProfileInfoV2` is one FTS token (#1196). |
| 2728 | */ |
| 2729 | getNodesByNameSubstring( |
| 2730 | substring: string, |
| 2731 | options: { kinds?: NodeKind[]; limit?: number; excludePrefix?: boolean } = {} |
| 2732 | ): Node[] { |
| 2733 | return this.queries |
| 2734 | .findNodesByNameSubstring(substring, options) |
| 2735 | .map((r) => r.node); |
| 2736 | } |
| 2737 | |
| 2738 | /** |
| 2739 | * Search nodes by text |
no test coverage detected