Expand description
Boolean query parser with stemming for code search.
Supports Elasticsearch-style queries:
- Boolean: “error AND handling”, “login OR auth”, “database NOT sqlite”
- Phrases:
"user authentication"(exact match) - Plain terms: matched with optional stemming
Default operator between terms is OR.
Structs§
- Matcher
- A compiled matcher for a single term or phrase.
- Query
- A parsed search query with boolean semantics.
Functions§
- is_
test_ file - Patterns that identify test files.
- language_
extensions - Map a language name to file extensions for filtering.
- parse
- Parse a query string into a structured Query.
- stem
- Simple English suffix stripping for code search.