Get searchable attributes

GET /indexes/{indexUid}/settings/searchable-attributes

Get the searchable attributes of an index.

Path parameters

  • indexUid string Required

    Index Unique Identifier

Responses

  • 200 application/json

    Ok

    Fields in which to search for matching query words sorted by order of importance.

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
  • Not Found

GET /indexes/{indexUid}/settings/searchable-attributes
curl \
 -X GET https://example.meilisearch.com:7700/indexes/movies/settings/searchable-attributes \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  "title",
  "description",
  "genre"
]
Response examples (401)
{
  "message": "The Authorization header is missing. It must use the bearer authorization method.",
  "code": "missing_authorization_header",
  "type": "auth",
  "link": "https://docs.meilisearch.com/errors#missing_authorization_header"
}