Expand description
Tantivy-based indexing tool for AGCodex
This module provides a comprehensive search indexing system using Tantivy for fast, sophisticated codebase search. The IndexTool supports:
- Full-text search with language-aware analysis
- Symbol-based semantic search (functions, classes, variables)
- Incremental updates for efficient re-indexing
- Location-aware results with precise file:line:column metadata
- Multi-language support via tree-sitter integration
§Architecture
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ IndexTool │───▶│ Tantivy Index │───▶│ Search Results │
│ │ │ │ │ │
│ • build() │ │ Schema: │ │ • path │
│ • update() │ │ • path │ │ • content │
│ • optimize() │ │ • content │ │ • symbols │
│ • stats() │ │ • symbols │ │ • language │
│ • search() │ │ • language │ │ • location │
└─────────────────┘ └─────────────────┘ └─────────────────┘Structs§
- Build
Input - Input for build operation
- Index
Config - Configuration for the indexing tool
- Index
Stats - Statistics about the index
- Index
Tool - Main indexing tool implementation
- Indexed
Document - Document in the search index
- Merge
Policy Config - Merge policy configuration
- Search
Input - Input for search operation
- Search
Query - Search query parameters
- Search
Result - Search result from the index with compression support
- Symbol
- Symbol information extracted from code
- Update
Input - Input for update operation
Enums§
- Index
Error - Errors specific to the indexing tool
Type Aliases§
- Index
Result - Result type for index operations