Search

Start reindex

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

POST/search/reindex

Use blnk.Search.startReindex to rebuild the search index.

Call the method

const response = await blnk.Search.startReindex({
  batch_size: 1000,
});
FieldTypeDescription
batch_sizenumberRecords processed per batch. Omit the argument 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"
  }
}
FieldTypeDescription
messagestringConfirmation that the reindex job started.
progressobjectInitial progress snapshot with status, phase, total_records, processed_records, and started_at.