Esc
ZeroIndex
GuidesAPI referenceSDKsChangelogOverviewBuy ZeroIndex

Update settings

View as MarkdownThe page as plain text

Change what is searchable, filterable and sortable in an index, and how results are ranked.

PATCH/v1/indexes/{uid}/settings

Only the settings you send change. The index is rebuilt in the background, and searches use the old settings until the new ones are ready. Requires an admin key.

Path parameters

uidstringrequired

The name of the index.

Body

searchableAttributesstring[]

The fields queries match against, most important first. Send ["*"] to search every field.

filterableAttributesstring[]

The fields you can use in filters and facets.

sortableAttributesstring[]

The fields you can sort results by.

rankingRulesstring[]

The order of the ranking rules. See Ranking.

synonymsobject

Words that should match each other, like { "phone": ["mobile", "cell"] }.

typoToleranceobject

Word lengths for one and two typos, and fields where typos are turned off.

Request

curl -X PATCH https://api.zeroindex.test/v1/indexes/products/settings \
  -H "Authorization: Bearer $ZEROINDEX_KEY" \
  -d '{
    "searchableAttributes": ["name", "brand", "description"],
    "filterableAttributes": ["category", "price", "in_stock"]
  }'
const task = await client.index("products").updateSettings({
  searchableAttributes: ["name", "brand", "description"],
  filterableAttributes: ["category", "price", "in_stock"],
});
task = client.index("products").update_settings({
    "searchableAttributes": ["name", "brand", "description"],
    "filterableAttributes": ["category", "price", "in_stock"],
})

Response

202
{
  "taskUid": 8801,
  "indexUid": "products",
  "status": "enqueued",
  "type": "settingsUpdate",
  "enqueuedAt": "2026-10-13T11:42:57Z"
}