Skip to content

Search Interface

The search interface provides a powerful way to explore your codebase using Zoekt query syntax.

Enter your query in the search bar and press Enter or click Search.

function handleRequest

Results appear instantly with matching code highlighted.

Code Search uses Zoekt query syntax for powerful searching. Here are the most common patterns:

PatternDescription
foo barBoth “foo” and “bar” (implicit AND)
foo or barEither “foo” or “bar”
"exit boot"Exact phrase match
FOO case:yesCase-sensitive search
/open(File|Dir)/Regular expression
ModifierExampleDescription
file:file:README setupFilter by filename
repo:repo:torvalds/linux testFilter by repository
lang:lang:typescriptFilter by language
branch:branch:mainFilter by branch
case:yesFOO case:yesCase-sensitive search
case:nofoo case:noCase-insensitive (default)
-lang:foo -lang:cNegate filter
-file:foo -file:testExclude files
-repo:foo -repo:deprecatedExclude repository
PatternDescription
file:\.py$Files ending in “.py”
sym:mainSymbol definitions
content:READMESearch content only (not filenames)
repo:myorg/api lang:go func.*Handler -file:test

This searches for:

  • Pattern matching func.*Handler (regex)
  • In Go files
  • In the myorg/api repo
  • Excluding files with “test” in the path

Each result shows:

  • Repository name - The source repository
  • File path - Path to the matching file
  • Matching lines - Code with syntax highlighting
  • Line numbers - For easy reference

Click on any result to expand and see more context around the match.

Use /pattern/ syntax for regex matching:

/func\s+\w+Handler\(/

Matches function declarations ending in Handler.

Search for symbol definitions:

sym:CreateUser

Finds definitions (functions, classes, types) named CreateUser.

lang:go sym:auth

Find Go symbol definitions related to authentication.

ShortcutAction
/Focus search bar
EscapeClear search / close preview
↑ / ↓Navigate results
EnterOpen result

The search query is encoded in the URL - share it with teammates:

http://localhost:3000?q=repo:api+lang:go+handler