bgng search and bgng query
Both commands search indexed qmd collections. Choose based on the kind of match you need.
| Command | Backend | Use when |
|---|---|---|
bgng search <query> | BM25 lexical search | You know the exact terms. |
bgng query <query> | BM25 plus vector plus optional rerank | You know the idea but not the exact wording. |
Examples
bgng search "database performance"
bgng search "database performance" -n 10 --json
bgng query "how do databases handle concurrent writes"
bgng query "rust async" --intent "systems programming" --explain
bgng query "rust async" --no-rerank
Shared flags
| Flag | Description |
|---|---|
-n=<count> | Result limit. Default is 5. |
-c, --collection=<name> | Restrict to one collection. |
--full | Show full documents instead of snippets. |
--json | Emit SearchResult[]. |
Query-only flags
| Flag | Description |
|---|---|
--min-score=<float> | Filter low scoring results. |
--intent=<hint> | Provide a domain hint. |
--explain | Show score breakdown details. |
--no-rerank | Skip LLM reranking for speed. |