Stream Postgres changes directly to Typesense with Sequin’s Typesense sink.
https://your-typesense-server:8108
).
id
field which is mandatory for Typesense.
It’s also okay to use an integer/serial/bigserial/uuid id
- Sequin will automatically stringify it for you.
However, from Typesense’s perspective, all id
s are strings and will be returned as such in search results.
id
should not include spaces or any other characters that require encoding in URLs.product_id
column into the string id
:
emplace
import action, which means:
id
/collections/#{collection_name}/documents/import
For indexing batches of documents. This is the most common path.
/collections/#{collection_name}/documents
For indexing documents one at a time.
Used when batch size was manually configured to be 1, or when the batch happens to have only 1 document.
/collections/#{collection_name}/documents/#{document_id}
For deleting documents. Deletions are always processed one at a time.
/collections/#{collection_name}
Only called when you click “Test Connection” in the Sequin console.
Successful responses indicate the connection is working and the collection exists, but the result is otherwise ignored.
id
fieldsaction
and collection_name
with routing functions.
Example routing function: