Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

search

Search across your codebase. By default uses hybrid search combining semantic (vector similarity) and keyword (FTS) results using Reciprocal Rank Fusion (RRF).

Usage

bobbin search <QUERY> [OPTIONS]

Examples

bobbin search "error handling"                    # Hybrid search (default)
bobbin search "database connection" --limit 20    # More results
bobbin search "auth" --type function              # Filter by chunk type
bobbin search "auth" --mode semantic              # Semantic-only search
bobbin search "handleAuth" --mode keyword         # Keyword-only search
bobbin search "auth" --repo myproject             # Search within a specific repo

Advanced query syntax

bobbin search parses the same query language as the HTTP /search endpoint, so a query means the same thing on either surface:

bobbin search 'repo:aegis lang:rust "error handling"'   # inline filters + phrase
bobbin search '+context -assembler'                     # required / excluded terms
bobbin search 'redis OR memcached'                      # OR branches, merged by best score
bobbin search 'type:function /_handler$/'               # chunk type + regex
bobbin search 'group:infra deploy'                      # named repo group

An inline repo: or group: takes precedence over the --repo / --group flag. Filters are stripped from the searched text, so repo:aegis error searches for error in aegis — not for the literal string repo:aegis.

Not yet supported: parenthesised grouping. (redis OR memcached) AND cache tokenises as the literal words (redis and memcached). See #50.

Options

FlagShortDescription
--type <TYPE>-tFilter by chunk type (function, method, class, struct, enum, interface, module, impl, trait, doc, section, table, code_block)
--limit <N>-nMaximum results (default: 10)
--mode <MODE>-mSearch mode: hybrid (default), semantic, or keyword
--repo <NAME>-rFilter to a specific repository (an inline repo: in the query wins)

Search Modes

ModeDescription
hybridCombines semantic + keyword using RRF (default)
semanticVector similarity search only
keywordFull-text keyword search only