From 5877e3591050a147eaa2a40524d030492e64a3ef Mon Sep 17 00:00:00 2001
From: jkazimierczak <77862767+jkazimierczak@users.noreply.github.com>
Date: Sat, 22 Nov 2025 21:41:48 +0100
Subject: [PATCH 1/3] docs: update products typesense transform function
---
docs/quickstart/typesense.mdx | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/docs/quickstart/typesense.mdx b/docs/quickstart/typesense.mdx
index 08eabd151..6373d015f 100644
--- a/docs/quickstart/typesense.mdx
+++ b/docs/quickstart/typesense.mdx
@@ -107,8 +107,17 @@ By the end, you'll have hands-on experience setting up Postgres change data capt
```elixir
def transform(action, record, changes, metadata) do
- Map.take(record, ["id", "name", "price"])
+ record
+ |> Map.take(["id", "name", "price"])
+ |> Map.update("id", nil, fn id ->
+ cond do
+ is_binary(id) -> id
+ is_integer(id) -> Integer.to_string(id)
+ true -> to_string(id)
+ end
+ end)
end
+
```
This transform will take the `id`, `name`, and `price` fields from the `products` table and use them to create a new document in Typesense.
@@ -264,4 +273,4 @@ Now you're ready to connect your own database to Sequin and start streaming chan
Setup a Typesense sink to keep your search index in sync.
-
\ No newline at end of file
+
From 71ae71c1bda19bbceebc71196866537e23333704 Mon Sep 17 00:00:00 2001
From: jkazimierczak <77862767+jkazimierczak@users.noreply.github.com>
Date: Sat, 22 Nov 2025 21:43:51 +0100
Subject: [PATCH 2/3] docs: add alternative way to specify typesense host
---
docs/quickstart/typesense.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/quickstart/typesense.mdx b/docs/quickstart/typesense.mdx
index 6373d015f..6d56ff4da 100644
--- a/docs/quickstart/typesense.mdx
+++ b/docs/quickstart/typesense.mdx
@@ -138,7 +138,7 @@ By the end, you'll have hands-on experience setting up Postgres change data capt
In the Typesense card, enter your Typesense configuration:
- - Host: `http://host.docker.internal:8108`
+ - Host: `http://host.docker.internal:8108` (or `http://typesense-server:8108`)
- Collection: `products`
- API Key: `my-api-key`
From df4b21806be2151ccce1d644426d33d123ef71f5 Mon Sep 17 00:00:00 2001
From: jkazimierczak <77862767+jkazimierczak@users.noreply.github.com>
Date: Sat, 22 Nov 2025 21:46:59 +0100
Subject: [PATCH 3/3] docs: bump typesense to 0.29.0
---
docs/quickstart/typesense.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/quickstart/typesense.mdx b/docs/quickstart/typesense.mdx
index 6d56ff4da..ca105f0ca 100644
--- a/docs/quickstart/typesense.mdx
+++ b/docs/quickstart/typesense.mdx
@@ -37,7 +37,7 @@ By the end, you'll have hands-on experience setting up Postgres change data capt
-p 8108:8108 \
-v ./typesense-data:/data \
--restart on-failure \
- typesense/typesense:28.0 \
+ typesense/typesense:29.0 \
--data-dir /data \
--api-key=my-api-key \
--enable-cors