glean-cli-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseglean search
Glean 搜索
PREREQUISITE: Readfor auth, global flags, and security rules.../glean-cli-shared/SKILL.md
Search for content in your Glean instance. Results are JSON.
bash
glean search [flags]前提条件: 阅读了解身份验证、全局参数和安全规则。../glean-cli-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