glean-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseglean search
glean search
PREREQUISITE: Readfor auth, global flags, and security rules.../glean-shared/SKILL.md
Search for content in your Glean instance. Results are JSON.
bash
glean search [flags]前提条件: 请阅读了解认证、全局标志和安全规则。../glean-shared/SKILL.md
在你的Glean实例中搜索内容,结果以JSON格式返回。
bash
glean search [flags]Flags
标志参数
| Flag | Type | Default | Description |
|---|---|---|---|
| []string | Filter by datasource (repeatable) | |
| boolean | false | Disable automatic query corrections |
| boolean | false | Disable spellcheck |
| boolean | false | Print request body without sending |
| integer | 10 | Maximum facet buckets per result |
| boolean | false | Return counts for all datasources |
| string | Complete JSON request body (overrides individual flags) | |
| integer | 0 | Maximum snippet size in characters |
| json | ndjson | text | json | Output format |
| integer | 10 | Number of results per page |
| string | Search query (positional arg) (required) | |
| boolean | false | Allow query operators to override facet filters |
| []string | [RESULTS QUERY_METADATA] | Response hints |
| boolean | false | Return expanded LLM-friendly content |
| []string | Filter by result tab IDs (repeatable) | |
| integer | 30000 | Request timeout in milliseconds |
| []string | Filter by document type (repeatable) |
| 标志 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| []string | 按数据源筛选(可重复使用) | |
| boolean | false | 禁用查询自动修正 |
| boolean | false | 禁用拼写检查 |
| boolean | false | 打印请求体但不发送请求 |
| integer | 10 | 每个结果的最大分面桶数量 |
| boolean | false | 返回所有数据源的结果数量 |
| string | 完整的JSON请求体(会覆盖单个标志参数) | |
| integer | 0 | 摘要的最大字符数 |
| json | ndjson | text | json | 输出格式 |
| integer | 10 | 每页结果数量 |
| string | 搜索查询(位置参数)(必填) | |
| boolean | false | 允许查询操作符覆盖分面筛选器 |
| []string | [RESULTS QUERY_METADATA] | 响应提示 |
| boolean | false | 返回适合LLM的扩展内容 |
| []string | 按结果标签ID筛选(可重复使用) | |
| integer | 30000 | 请求超时时间(毫秒) |
| []string | 按文档类型筛选(可重复使用) |
Examples
示例
bash
glean search "vacation policy" | jq '.results[].document.title'
glean search --json '{"query":"Q1 reports","pageSize":5,"datasources":["confluence"]}' | jq .bash
glean search "vacation policy" | jq '.results[].document.title'
glean search --json '{"query":"Q1 reports","pageSize":5,"datasources":["confluence"]}' | jq .Discovering Commands
命令探索
bash
undefinedbash
undefinedShow machine-readable schema for this command
显示此命令的机器可读模式
glean schema search
glean schema search
List all available commands
列出所有可用命令
glean schema | jq '.commands'
undefinedglean schema | jq '.commands'
undefined