Skip to content

Search

CodeDox provides lightning-fast code search using PostgreSQL full-text search.

Search Features

  • Full-Text Search: PostgreSQL's powerful text search with weighted fields
  • Enhanced Search Modes: Standard code search with intelligent markdown fallback for comprehensive results
  • Fuzzy Matching: Finds similar terms using pg_trgm extension
  • Language Filtering: Search within specific programming languages
  • Source Filtering: Limit search to specific documentation sources
  • Full Documentation Access: Get complete markdown content from any documentation page

Search Interfaces

Web UI

Use the search bar on the dashboard or dedicated search page.

CLI

python cli.py search "authentication middleware" --limit 10
python cli.py search "useState hook" --source "React"

MCP Tool

{
  "name": "get_content",
  "arguments": {
    "library_id": "library-id", 
    "query": "authentication",
    "search_mode": "enhanced",
    "limit": 10
  }
}

Search Modes: - "code" (default): Direct code search with markdown fallback for <5 results - "enhanced": Always searches markdown docs to find ALL related snippets

Search Ranking

Results are ranked by relevance using weighted fields: 1. Title (weight: A) - Highest priority 2. Description (weight: B) - Medium priority
3. Code (weight: C) - Lower priority

Performance

  • Sub-100ms response times
  • Indexes on search_vector for fast queries
  • Optimized for code search patterns