Zoekt Query Language Overview
mainThe Zoekt query language is used to search text within Git repositories. It allows you to combine search patterns, field filters, negations, and logical operators to create precise queries.
Core Syntax Rules:
- Conjunction (AND): Implicitly applied when expressions are separated by a space. Note that the word
andis treated as a search term, not an operator. - Disjunction (OR): Use the lowercase
oroperator to combine alternatives. - Negation: Use the
-symbol before an expression to exclude it. - Grouping: Use parentheses
()to control the order of operations and create complex logic.
content:test (lang:python or lang:javascript)