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

Function getMatchedSymbols

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

Source from the content-addressed store, hash-verified

379}
380
381function getMatchedSymbols(symbols: string[], queryTerms: Set<string>): string[] {
382 if (queryTerms.size === 0) return [];
383 return symbols.filter((symbol) => splitCamelCase(symbol).some((term) => queryTerms.has(term)));
384}
385
386function computeKeywordScore(query: string, queryTerms: Set<string>, doc: SearchDocument, matchedSymbols: string[]): number {
387 if (queryTerms.size === 0) return 0;

Callers 1

searchMethod · 0.85

Calls 1

splitCamelCaseFunction · 0.85

Tested by

no test coverage detected