Hanzo
OpenapiIndex

Sets which attributes an index can be filtered on.

Sets which attributes an index can be filtered on. Replaces the whole filterable set.

PATCH /v1/index/indexes/{uid}/settings

Addresshttps://api.hanzo.ai/v1/index/indexes/{uid}/settings
MethodPATCH
Operationpatch_index_indexes_by_uid_settings
AuthAuthorization: Bearer $HANZO_API_KEY

Sets which attributes an index can be filtered on.

Replaces the whole filterable set. An attribute not listed here cannot be used in a search filter, so this is what makes a per-user or per-tag narrowing possible at all.

It CREATES the index when it is missing rather than answering 404, because a Meilisearch client configures settings on an index it has just asked for and a refusal there leaves the client with no index at all.

The 202 and its enqueued task are DIALECT COMPATIBILITY, not a promise of later work: the setting is already applied when this answers.

Request

2 fields, body application/json (required).

FieldInTypeRequiredDescription
uidpathstringyes
filterableAttributesbodystring[]FilterableAttributes replaces the whole filterable set.

Response

StatusBodyMeaning
202indexEnqueuedaccepted

202 body — 5 fields.

FieldInTypeAlwaysDescription
enqueuedAtbodystringEnqueuedAt is when the task was recorded, RFC 3339 — which is also when it completed.
indexUidbodystringIndexUID names the index the write landed in.
statusbodystringStatus is always enqueued, for dialect compatibility.
taskUidbodyintegerTaskUID identifies the task for a client that polls it.
typebodystringType is the dialect's name for the kind of write: indexCreation, indexDeletion, settingsUpdate, documentAdditionOrUpdate, documentDeletion.

Failure carries the platform error shape — see Errors.

Examples

hanzo index indexes settings patch <uid>

Index API · All Hanzo APIs · Interactive reference

How is this guide?

On this page