Skip to content

Interface: SearchResponse

Defined in: packages/sdk/src/search-service.ts:82

The result of a SearchService.search call — matches grouped by file plus totals for the summary line ("N results in M files").

Properties

files

ts
files: SearchFileResult[];

Defined in: packages/sdk/src/search-service.ts:84

Files that contained at least one match, in traversal order.


totalMatches

ts
totalMatches: number;

Defined in: packages/sdk/src/search-service.ts:86

Total number of matches across every file.


truncated

ts
truncated: boolean;

Defined in: packages/sdk/src/search-service.ts:91

True when the search stopped early at SearchOptions.maxResults — the results are a prefix, not the complete set.