{{define "title"}}Search — Twister API{{end}} {{define "content"}}
Search endpoints run PostgreSQL full-text queries over indexed Tangled documents. Results include highlighted snippets and weighted relevance scores. If Constellation is configured, repository results are enriched with star counts.
{{range .}}{{template "doc-entry" .}}{{end}}The keyword search uses PostgreSQL web-style query parsing:
| Feature | Example |
|---|---|
| Simple terms | go search |
| Exclude term | rust -unsafe |
| Phrase | "pull request" |
| Natural-language | repo issue parser |
| Status | Condition |
|---|---|
| 400 | Missing q, invalid limit/offset, or unknown parameter. |
| 500 | Internal search failure. |