MCPcopy
hub / github.com/Choices-js/Choices / Searcher

Interface Searcher

public/types/src/scripts/interfaces/search.d.ts:6–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4 rank: number;
5}
6export interface Searcher<T extends object> {
7 reset(): void;
8 isEmptyIndex(): boolean;
9 index(data: T[]): void;
10 search(needle: string): SearchResult<T>[];
11}

Callers

nothing calls this directly

Implementers 3

SearchByPrefixFiltersrc/scripts/search/prefix-filter.ts
SearchByKMPsrc/scripts/search/kmp.ts
SearchByFusesrc/scripts/search/fuse.ts

Calls

no outgoing calls

Tested by

no test coverage detected