Requirements
- a new Meilisearch Cloud project or a self-hosted Meilisearch instance with at least one index
- a command-line terminal with
curl
installed
Getting the value of a single index setting
Start by checking the value of the searchable attributes index setting. Use theGET
endpoint of the /settings/searchable-attributes
subroute, replacing INDEX_NAME
with your index:
localhost:7700
with the appropriate address and port.
You should receive a response immediately:
Updating an index setting
All documents include a primary key attribute. In most cases, this attribute does not contain any relevant data, so you can improve your application search experience by explicitly removing it from your searchable attributes list. Use thePUT
endpoint of the /settings/searchable-attributes
subroute, replacing INDEX_NAME
with your index and the sample attributes "title"
and "overview"
with attributes present in your dataset:
taskUid
to monitor the status of your request:
status
is enqueued
or processed
, wait a few more moments and check the task status again. If status
is failed
, make sure you have used a valid index and attributes, then try again.
If task status
is succeeded
, you successfully updated your index’s searchable attributes. Use the subroute to check the new setting’s value: