babylon-mcp/src/search
Michael Mainguy d747c2ce7c Fix pathToDocId to match actual database ID format
Root cause analysis revealed the previous fix used wrong casing and prefix.

Investigation findings:
- Queried database and found actual IDs use lowercase "documentation_" prefix
- Example: "documentation_features_featuresDeepDive_audio_v2_playingSoundsMusic"
- Previous fix incorrectly used "Documentation_content_" (wrong case + extra "content")

How indexing works:
- Source name: "documentation" (lowercase)
- Source path: ends at .../Documentation/content
- Indexer strips path up to and including /content/
- Prepends source name with underscore: "documentation_"

Correct implementation:
- Strip /content/ from input path (handles both full and relative paths)
- Replace slashes with underscores
- Prepend "documentation_" (lowercase, no "content")

Verified with test:
- Input: "features/featuresDeepDive/audio/v2/playingSoundsMusic"
- Output: "documentation_features_featuresDeepDive_audio_v2_playingSoundsMusic"
- Successfully retrieves document from database

All 152 tests passing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 07:57:43 -06:00
..
api-indexer.ts feat: Add TypeScript API documentation indexing and search with improved test coverage 2025-11-23 05:58:16 -06:00
document-parser.test.ts feat: Add TypeScript API documentation indexing and search with improved test coverage 2025-11-23 05:58:16 -06:00
document-parser.ts Implement LanceDB-based search and document retrieval 2025-11-23 04:57:29 -06:00
lancedb-indexer.ts Implement LanceDB-based search and document retrieval 2025-11-23 04:57:29 -06:00
lancedb-search.test.ts Add source code indexing and search with comprehensive documentation 2025-11-23 06:34:00 -06:00
lancedb-search.ts Fix pathToDocId to match actual database ID format 2025-11-23 07:57:43 -06:00
source-code-indexer.ts Add source code indexing and search with comprehensive documentation 2025-11-23 06:34:00 -06:00
tsdoc-extractor.ts feat: Add TypeScript API documentation indexing and search with improved test coverage 2025-11-23 05:58:16 -06:00
types.ts feat: Add TypeScript API documentation indexing and search with improved test coverage 2025-11-23 05:58:16 -06:00