Search

Start reindex

Trigger a Typesense reindex from your existing database with the Go SDK.

POST/search/reindex

Use 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.

FieldTypeDescription
BatchSize*intRecords 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)

FieldTypeDescription
MessagestringConfirmation that the reindex job started.
Progressblnkgo.
ReindexProgress
Initial progress snapshot with Status, Phase, TotalRecords, ProcessedRecords, and StartedAt.