Field Autocomplete
Autocomplete extracted field names from the field registry with GET /v1/search/autocomplete: relevance-ranked suggestions with counts and sample values.
The Talonic API lets you search and filter documents by their extracted field values: field autocomplete resolves field names, document filtering applies composable conditions, and global omnisearch queries every entity type at once. The field autocomplete endpoint is the entry point: it performs type-ahead search over the field registry, the deduplicated catalog of every field Talonic has extracted from your documents.
Results are ranked by a combination of name relevance and occurrence count, so frequently seen fields surface first. Use this to power field picker dropdowns and search-as-you-type UIs, or to resolve a field ID before calling the field values or filter endpoints: the fieldId each suggestion carries is exactly what POST /v1/documents/filter conditions and GET /v1/search/field-values expect.
Each suggestion carries two counts that answer different questions. documentCount is the number of documents an is_not_empty filter on this field matches today — it is counted from the same materialized store the filter executes against, so the picker never promises more than the filter delivers. occurrenceCount (and its raw registry twin registryOccurrenceCount) is the discovery-time count of how often the field concept was seen during extraction; it can exceed documentCount when values have not been materialized yet.
Suggestions are visibility-filtered: the endpoint evaluates Sources-IAM as the API key's minting user, so counts and sample values only reflect documents that key is admitted to see. An empty or omitted q returns the top fields by occurrence rather than an error, which makes the endpoint safe to call for an initial "browse all fields" state before the user types anything.
/v1/search/autocompleteQuery parameters
20Request
curl "https://api.talonic.com/v1/search/autocomplete?q=supplier" \
-H "Authorization: Bearer $TALONIC_API_KEY"Response
Response fields
Response
{
"data": [
{
"fieldId": "6f1e9a2b-4c3d-4e5f-8a7b-9c0d1e2f3a4b",
"canonicalName": "supplier_name",
"displayName": "Supplier Name",
"dataType": "string",
"tier": 1,
"documentCount": 1794,
"occurrenceCount": 1842,
"registryOccurrenceCount": 1842,
"matchSource": "canonical",
"sampleValues": ["Acme Corp", "Globex Inc", "Initech"]
}
]
}Errors
Error responses