Search
Search via Typesense
Run full-text search across your ledger data with the Go SDK.
POST
Search via Typesense
Use
client.Search.SearchDocument to search records in a collection.
Call the method
client.Search.SearchDocument
| Field | Type | Description |
|---|---|---|
Q | string | Search query text. Use * to return all records. |
QueryBy | string | Comma-separated list of fields to search in. |
FilterBy | string | Filter conditions to refine results. |
SortBy | string | Sort order, for example created_at:desc. |
Page | int | Page number, starting at 1. |
PerPage | int | Results per page. Max 250, defaults to 10. |
resource | blnkgo.ResourceType | Collection to search: Transactions, Balances, Ledgers, or Identities. |
Use the search results
Read
searchResult.Hits for matching documents. Each hit includes a Document with fields such as TransactionID, Amount, and Status.Response
201 Created
| Field | Type | Description |
|---|---|---|
found | number | Number of records matching the query. |
out_of | number | Total records in the collection. |
page | number | Current page number. |
search_time_ms | number | Time taken to run the search, in milliseconds. |
hits | object[] | Array of results, each with a document and optional highlights and text_match. |
Related docs
How search works
Query syntax, indexing, and use cases.
Search via Typesense
HTTP request and response schema.