UNPKG

apple-hig-mcp

Version:

High-performance MCP server providing instant access to Apple's Human Interface Guidelines via hybrid static/dynamic content delivery

68 lines 1.85 kB
/** * Enhanced Search Indexer Service * Single Responsibility: Generate and manage search indices with keyword-based search */ import type { ISearchIndexer, IContentProcessor } from '../interfaces/content-interfaces.js'; import type { HIGSection, SearchConfig } from '../types.js'; export declare class SearchIndexerService implements ISearchIndexer { private contentProcessor; private searchIndex; constructor(contentProcessor: IContentProcessor, _keywordConfig?: Partial<SearchConfig>); /** * Add section to search index */ addSection(section: HIGSection): void; /** * Generate search index metadata */ generateIndex(): any; /** * Perform keyword-based search */ search(query: string, sectionsOrOptions?: any[] | { limit?: number; platform?: string; category?: string; minScore?: number; useSemanticSearch?: boolean; }, options?: { limit?: number; platform?: string; category?: string; minScore?: number; useSemanticSearch?: boolean; }): Promise<any[]>; /** * Extract keywords from section content */ private extractKeywords; /** * Generate snippet for search results */ private generateSnippet; /** * Analyze content structure */ private analyzeContentStructure; /** * Clear search index */ clear(): void; /** * Get index size */ getIndexSize(): number; /** * Get indexing statistics */ getStatistics(): any; /** * Check if keyword search is available */ isKeywordSearchEnabled(): boolean; /** * Check if semantic search is enabled (always false now) */ isSemanticSearchEnabled(): boolean; } //# sourceMappingURL=search-indexer.service.d.ts.map