Search
Start reindex
Trigger a Typesense reindex from your existing database with the Go SDK.
POST
/search/reindexUse client.Search.StartReindex to rebuild the search index.
Call the method
batchSize := 1000
started, _, _ := client.Search.StartReindex(
&blnkgo.StartReindexRequest{
BatchSize: &batchSize,
},
)Pass nil instead of a request to use the Core default batch size.
| Field | Type | Description |
|---|---|---|
BatchSize | *int | Records processed per batch. Omit or pass nil options to use the Core default. Must be a positive integer when set. |
Poll reindex progress
Use get reindex status to track progress until Status is completed.
Response
{
"message": "Reindex operation started",
"progress": {
"status": "in_progress",
"phase": "indexing_transactions",
"total_records": 2145709,
"processed_records": 0,
"started_at": "2026-02-12T12:13:10.448612096Z"
}
}Go response (*blnkgo.StartReindexResponse)
| Field | Type | Description |
|---|---|---|
Message | string | Confirmation that the reindex job started. |
Progress | blnkgo.ReindexProgress | Initial progress snapshot with Status, Phase, TotalRecords, ProcessedRecords, and StartedAt. |