Simple Query DSL for Help System

Documentation index for Glazed v1.3.4, with 77 sections.

Sections

Terminology & Glossary
📖 Documentation
Navigation
77 sectionsv0.1
📄 Simple Query DSL for Help System — glaze help simple-query-dsl
simple-query-dsl

Simple Query DSL for Help System

Topichelp-systemquerysearchdsl

Simple Query DSL for Help System

The Glazed help system supports a simple Domain Specific Language (DSL) for querying help sections. This page is a quick-start reference for authors and users who just need the essentials. For the full language reference (including operator precedence tables, metadata fields, and troubleshooting tips) run glaze help user-query-dsl.

Quick Reference

TaskSyntaxExample
Filter by section typetype:<value> or shortcut wordtype:example, tutorials
Filter by metadatatoplevel:true, default:false, template:truetoplevel:true
Match commands/flagscommand:<name>, flag:--<flag>command:json, flag:--output
Search topics/tagstopic:<tag>topic:database
Text search"quoted phrase""SQLite database"
Combine expressionsAND, OR, NOT, parenthesesexamples AND topic:database, (tutorials OR examples) AND NOT topic:advanced

Shortcuts (examples, tutorials, topics, applications, toplevel, defaults) are just readable aliases for the equivalent field:value queries.

Core Patterns

Field Filters

type:tutorial
topic:templates
command:json
flag:--output
slug:help-system

Mix multiple filters with boolean operators to narrow results:

type:example AND topic:database
(examples OR tutorials) AND command:json
flag:--output AND NOT topic:advanced

Metadata Filters

toplevel:true        # Only sections shown on the root help screen
default:true         # Sections displayed without --all
template:true        # Template sections
"SQLite database"
"error handling" AND tutorials
performance OR "throughput tuning"

Practical Examples

# Show beginner-friendly getting-started docs
glaze help --query "defaults AND tutorials"

# Find every example that mentions SQLite or SQL performance tips
glaze help --query "(examples) AND (\"SQLite\" OR topic:sql) AND NOT topic:advanced"

# List all sections that talk about the json command
glaze help --query "command:json"

# Search for CLI flags across docs
glaze help --query 'flag:--output AND "table"'

CLI Usage

glaze help --query "examples AND topic:database"
glaze help --query "(tutorials OR examples) AND toplevel:true"
glaze help --query 'flag:--output AND "JSON"' --short

Combine --query with the standard help flags:

  • --short for compact summaries
  • --all to list every matching section
  • --print-query / --print-sql (on the help command itself) when debugging complex expressions

Next Steps

  • Need every operator, metadata field, and error message documented? See glaze help user-query-dsl.
  • Want to run queries from your own code or service? Check out glaze help using-the-query-api.