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

Search

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

Query syntax

The keyword search uses PostgreSQL web-style query parsing:

FeatureExample
Simple termsgo search
Exclude termrust -unsafe
Phrase"pull request"
Natural-languagerepo issue parser

Errors

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