MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / getMatchedSymbolEntries

Function getMatchedSymbolEntries

src/core/embeddings.ts:435–438  ·  view source on GitHub ↗
(symbols: SymbolSearchEntry[], queryTerms: Set<string>)

Source from the content-addressed store, hash-verified

433}
434
435function getMatchedSymbolEntries(symbols: SymbolSearchEntry[], queryTerms: Set<string>): SymbolSearchEntry[] {
436 if (queryTerms.size === 0) return [];
437 return symbols.filter((symbol) => splitCamelCase(symbol.name).some((term) => queryTerms.has(term)));
438}
439
440export class SearchIndex {
441 private documents: SearchDocument[] = [];

Callers 1

searchMethod · 0.85

Calls 1

splitCamelCaseFunction · 0.85

Tested by

no test coverage detected