Chilkat Online Tools

C# / MeiliSearch v0.24 / Get stop-words

Back to Collection Items

// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

Chilkat.Http http = new Chilkat.Http();
bool success;

Chilkat.JsonObject queryParams = new Chilkat.JsonObject();
queryParams.UpdateString("[\"the\"]","");

http.SetRequestHeader("Content-Type","application/json");
http.SetRequestHeader("X-Meili-Api-Key","masterKey");

Chilkat.HttpResponse resp = http.QuickRequestParams("GET","http://localhost:7700/indexes/indexUID/settings/stop-words",queryParams);
if (http.LastMethodSuccess == false) {
    Debug.WriteLine(http.LastErrorText);
    return;
}

Debug.WriteLine(Convert.ToString(resp.StatusCode));
Debug.WriteLine(resp.BodyStr);

Curl Command

curl -X GET
	-H "X-Meili-Api-Key: masterKey"
	-H "Content-Type: application/json"
	-d '["the"]'
http://localhost:7700/indexes/indexUID/settings/stop-words

Postman Collection Item JSON

{
  "name": "Get stop-words",
  "protocolProfileBehavior": {
    "disableBodyPruning": true
  },
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Content-Type",
        "type": "text",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "[\"the\"]"
    },
    "url": {
      "raw": "{{url}}/indexes/{{indexUID}}/settings/stop-words",
      "host": [
        "{{url}}"
      ],
      "path": [
        "indexes",
        "{{indexUID}}",
        "settings",
        "stop-words"
      ]
    }
  },
  "response": [
  ]
}