OriginChain docs
examples · fts

Full-text search examples

← All examples

6 full-text search examples, each on its own page. FTS on OriginChain is a runtime endpoint - you POST documents to a field and query them back, no schema declaration required. Every example has 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.