content:- Text in files (quoted:content: "auth")filePath:- Paths with wildcards (NO quotes:filePath: *test*)kind:- Symbol type (quoted:kind: "function_declaration")language:- Language (no quotes:language: python)
Wildcards - NO QUOTES:
- ✅
filePath: *test* - ❌
filePath: "*test*"
Boolean - lowercase:
- ✅
language: python and kind: "function_declaration" - ❌
language: python AND kind: "function_declaration" - Use:
and,or,not,(parentheses)
Common Kinds:
function_declaration, class_declaration, interface_declaration, method_definition, call_expression
By file type:
language: typescript
filePath: *.sql
By directory:
filePath: *services*
filePath: *test* and language: javascript
By symbol:
kind: "function_declaration"
kind: "class_declaration" and language: python
By content:
content: "authenticate"
"UserService" and language: typescript
Combined:
kind: "function_declaration" and content: "async" and filePath: *api*
language: python and not filePath: *test*
- Start simple, add filters incrementally
- Use semantic search for concepts, KQL for structure
- If no results: remove filters, simplify query
- ❌ Quoting wildcards:
filePath: "*test*"→ ✅filePath: *test* - ❌ Uppercase operators:
AND→ ✅and - ❌ Missing quotes on kind:
kind: function→ ✅kind: "function_declaration"