Skip to main content

Module fts

Module fts 

Source
Expand description

PostgreSQL pg_search BM25 query sanitization and execution.

The module name stays fts to keep command wiring stable; runtime keyword search is pg_search BM25 against Gobby’s PostgreSQL hub.

Structs§

ResolvedGraphSymbol

Constants§

FILTERED_FETCH_CAP

Functions§

compile_patterns
count_content
Count matching content chunks using pg_search BM25, with LIKE fallback.
count_text
Count matching symbols using pg_search BM25, with LIKE fallback.
expand_paths
path_filter_falls_back
resolve_graph_symbol
Resolve user input to a canonical symbol id for graph queries.
sanitize_pg_search_query
Sanitize user input for pg_search’s BM25 query DSL.
search_content
Full-text search across file content chunks.
search_symbols_by_name
Fallback LIKE search on symbol names.
search_symbols_exact_first
search_symbols_fts
BM25 search across symbol names, qualified names, signatures, docstrings, and summaries.
search_text
Full-text search for symbols: BM25 with LIKE fallback.