Chilkat Online Tools

Unicode C++ / MeiliSearch v0.24 / Update searchable attributes

Back to Collection Items

void ChilkatSample(void)
    {
    jarr.AddStringAt(-1,L"title");    jarr.AddStringAt(-1,L"author");    jarr.EmitSb(sbRequestBody);
    }

Curl Command

curl -X POST
	-H "X-Meili-Api-Key: masterKey"
	-H "Content-Type: application/json"
	-d '["title", "author"]'
http://localhost:7700/indexes/indexUID/settings/searchable-attributes

Postman Collection Item JSON

{
  "name": "Update searchable attributes",
  "protocolProfileBehavior": {
    "disabledSystemHeaders": {
      "content-type": true
    }
  },
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "[\"title\", \"author\"]"
    },
    "url": {
      "raw": "{{url}}/indexes/{{indexUID}}/settings/searchable-attributes",
      "host": [
        "{{url}}"
      ],
      "path": [
        "indexes",
        "{{indexUID}}",
        "settings",
        "searchable-attributes"
      ]
    }
  },
  "response": [
  ]
}