OriginChainDB docs
examples · fts

Full-text search examples

← All examples

FTS on OriginChainDB is a runtime endpoint: you POST documents to a field and query them back, and no schema declaration is required. Nine examples follow, each on its own page with side-by-side cURL / Python / TypeScript / Go, the response shape, and notes on common mistakes.

newer search capabilities

The native endpoint on this page covers BM25, boolean and phrase search. For fuzzy matching (typo tolerance), per-field analyzers with language stemming, and multi-field / boosted queries, use the Elasticsearch-compatible API — a drop-in for the @elastic clients that runs over these same substrate-native indexes. Connect a client →

The endpoint takes the form /v1/tenants/:t/fts/<schema>/<field>. Each field is its own independent inverted index. The doc_id you supply at index time is what comes back at search time - typically the row's primary key.