Expand description
Multi-layer search engine with Tantivy integration Multi-layer search engine for AGCodex with Tantivy integration.
This module provides a comprehensive search system with four layers:
- Layer 1: In-memory symbol index using DashMap for <1ms lookups
- Layer 2: Tantivy full-text search for <5ms searches
- Layer 3: AST cache for semantic search
- Layer 4: Ripgrep fallback for unindexed files
Features context-aware output with rich metadata for LLM consumption.
Structs§
- Cached
Ast - Cached AST information for Layer 3
- Cached
Result - Cached search result with TTL
- Change
- Change tracking for search results
- Context
- Rich context information for LLM consumption
- Line
- Individual line with metadata
- Location
- Precise location information
- Match
- Individual search match
- Metadata
- Search metadata
- Multi
Layer Search Engine - Multi-layer search engine with automatic strategy selection
- Scope
- Containing scope information
- Search
Config - Search configuration
- Search
Query - Search query with automatic strategy selection
- Symbol
- Symbol information for Layer 1 index
- Tantivy
Schema - Tantivy schema for code search
- Tantivy
Search Engine - Tantivy-based full-text search engine
- Tool
Output - Context-aware search result
Enums§
- Change
Type - Query
Type - Query type for automatic strategy selection
- Search
Layer - Search layer that produced the results
- Search
Scope - Search scope definition
- Search
Strategy - Search strategy employed
- Symbol
Kind - Visibility
Type Aliases§
- Search
Result - Search result with rich context