- Perform detailed and specific queries in Glean Search.
- Create Manual search queries for Agent, allowing fine-grained specification of exactly which data Company Search, Web Search, and other Agents Actions/Steps will retrieve.
filter:value (like app:gdrive or from:"Jane Doe"). Include negation filters by adding a - operator to any query (e.g. -app:gmail excludes results from Google Mail).
Combine filters to get precise results — it’s like giving Glean specific instructions to understand exactly what you’re looking for.
This comprehensive article is designed to be your go-to reference for Glean Search Filters:
- New to Glean? Start with Essential syntax rules and Core filters to learn the basics.
- Building Agents? Jump to Use search filters in Glean Agents for critical rules and examples.
- Need app-specific help? Application specific filters covers 9+ applications with examples.
- Looking for examples of common use-cases? Common Search Patterns has ready-to-use queries for frequent scenarios.
- Stuck? Check Known limitations and workarounds for known issues and workarounds.
Essential syntax rules
The essential syntax rules include how to handle spaces, exact phrases, and word matching logic. Quote multi-word values, use exact phrases for precise matches, and understand that unquoted words search for ANY while quoted words search for ALL.Core filters
These are the fundamental filters that work across all applications:Date and time expressions
Natural language
Specific dates
Boolean logic rules
- Same filter = OR:
type:doc type:sheet(docs OR sheets). - Different filters = AND:
app:jira from:me(Jira AND from me). - No way to force AND on same filter (platform limitation).
- No parentheses or custom grouping (platform limitation).
- Negation filter: Add a
-operator to remove certain keywords from queries (e.g. employee experience-customer→ exclude results that mention “customer”.).
People and entity filters
Filters for finding people by title, department, location, reporting structure, and combining with document searches.Text matching patterns
Use search filters in Glean Agents
Crafting manual search queries in Glean Agents is a powerful approach for achieving accurate, highly relevant information retrieval across organizational knowledge. Unlike AI-generated queries, manually constructed searches allow you to specify exactly which parameters and filters to apply, leading to precise results that align tightly with business objectives. Quoting multi-word values—such as account:“Acme Corp” ensures the system interprets search intent correctly, while explicit filter inclusion helps target the right data set from the start. This level of control not only minimizes noise and irrelevant results but also supports reproducibility and transparency in automated processes. Manual queries allows you to confidently surface critical insights, troubleshoot with nuance, and create efficient workflows that are robust to context changes—making them indispensable for high-stakes use cases within Glean. Hence, for theCompany Search step in a Glean Agent, it is a core best practice to default to a Manual search query instead of an AI-generated one.
Manual queries provide deterministic, repeatable, and reliable results, which is critical for any automated workflow.Use the
AI-generated option only when search parameters, like a specific date, must be created dynamically during the Agent’s run.
Critical Rules
Always quote multi-word values, test syntax in Glean Search UI first, and be explicit with all needed filters for reliable Agent results.- Always quote multi-word values:
account:"Acme Corp". - Test in Glean Search UI first, copy exact syntax.
Any manual search query that will work in Agents will also work in Glean Search. Consequently, this pattern of testing manual queries is quite effective.
- Use Manual Search (not AI-generated) when possible.
- Be explicit - include all needed filters.
- Handle empty results in your Agent logic.
Good vs Bad Examples
Proper quoting makes the difference between successful and failed searches. Quoted multi-word values ensure accurate interpretation while unquoted ones cause parsing errors.Tips and tricks
Build queries incrementally starting simple, use app filters first for performance, and discover new filters through the UI’s “All filters” option.Query Building Strategy
The incremental layering approach - starting with keywords, then systematically adding app, type, person, and time filters - mirrors how Glean’s search engine processes queries for optimal performance. This methodology prevents the “too many results” problem that overwhelms users and ensures each filter layer meaningfully refines the result set rather than creating contradictory constraints.- Start simple:
project phoenix - Add app:
project phoenix app:confluence - Add type:
project phoenix app:confluence type:page - Add person:
project phoenix app:confluence type:page from:"PM" - Add time:
project phoenix app:confluence type:page from:"PM" updated:past_week
Performance Tips
Begin with app filters to narrow scope, be specific with document types, limit date ranges, and use exact phrases for known titles.- Use
app:filter first to narrow scope - Be specific with types
- Limit date ranges when possible
- Use exact phrases for known titles
Discover filters through the Search UI:
- Run a search.
- Click All filters.
- Select options.
- Copy the syntax from the search bar.
Known limitations and workarounds
| Limitation | What doesn’t work | Practical workaround |
|---|---|---|
| No complex boolean | (A OR B) AND (C OR D) | Run multiple targeted searches |
| No same‑field AND | “Docs with Jane AND John” | Use text search for both names |
| No regex | Pattern matching | Use multiple exact phrases |
| History scope | my:history > 6 months | Combine with other filters |
| GDrive recency edge cases | Newly updated files may not appear with broad time filters | Combine time with from: or type:; add keywords for critical searches |
Quick reference table
These are the 8 common use cases with their exact filter combinations for quick copy-paste:| Need | Filter combination |
|---|---|
| My recent work | from:me updated:past_week |
| Team documents | from:[department:"Dept"] type:document |
| Open bugs | app:jira type:bug status:"open" |
| Customer intel | "Acme Corp" app:salescloud app:zendesk |
| Meeting notes | "meeting" type:document updated:past_month |
| Shared drives | app:gdrive folder:"Shared" |
| Recent Slack | app:slack updated:yesterday |
| My history, slides | my:history type:presentation |