{{define "title"}}Search — Twister API{{end}} {{define "content"}}

Search

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}}

Query syntax

The keyword search uses SQLite FTS5 query syntax:

FeatureExample
Boolean ANDgo AND search
Boolean NOTrust NOT unsafe
Phrase"pull request"
Prefixtang*
Field-scopedtitle:parser

Errors

StatusCondition
400Missing q, invalid limit/offset, or unknown parameter.
500Internal search failure.
{{end}} {{template "layout" .}}