{{define "title"}}Search — Twister API{{end}} {{define "content"}}
Search endpoints run FTS5 keyword queries over indexed Tangled documents. Results include highlighted body snippets and BM25 relevance scores. If Constellation is configured, repository results are enriched with star counts.
{{range .}}{{template "doc-entry" .}}{{end}}The keyword search uses SQLite FTS5 query syntax:
| Feature | Example |
|---|---|
| Boolean AND | go AND search |
| Boolean NOT | rust NOT unsafe |
| Phrase | "pull request" |
| Prefix | tang* |
| Field-scoped | title:parser |
| Status | Condition |
|---|---|
| 400 | Missing q, invalid limit/offset, or unknown parameter. |
| 500 | Internal search failure. |