Child route of the settings route.
The fields whose attributes are added to the displayed-attributes list are displayed in each matching document.
By default, all fields are considered to be displayedAttributes
. This behavior is represented by the *
in the settings. Setting displayedAttributes
to an empty array []
will reset the setting to its default value.
Displayed attributes can also be updated directly through the global settings route along with the other settings.
::: note
Updating the settings means overwriting the default settings of MeiliSearch. You can reset to default values using the DELETE
routes.
:::
Learn more about displayed fields.
Get the displayed attributes of an index.
Variable | Description |
---|---|
index_uid | The index UID |
List the settings.
["title", "description", "genre", "release_date"]
Update the displayed attributes of an index.
Variable | Description |
---|---|
index_uid | The index UID |
An array of strings that contains attributes of an index to display.
More information about the body.
{
"updateId": 1
}
This updateId
allows you to track the current update.
Reset the displayed attributes of the index to the default value.
All attributes found in the documents added to the index.
Variable | Description |
---|---|
index_uid | The index UID |
{
"updateId": 1
}
This updateId
allows you to track the current update.