Chilkat Online Tools

Python / MeiliSearch v0.24 / Get stop-words

Back to Collection Items

import sys
import chilkat2

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

http = chilkat2.Http()

queryParams = chilkat2.JsonObject()
queryParams.UpdateString("[\"the\"]","")

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

# resp is a CkHttpResponse
resp = http.QuickRequestParams("GET","http://localhost:7700/indexes/indexUID/settings/stop-words",queryParams)
if (http.LastMethodSuccess == False):
    print(http.LastErrorText)
    sys.exit()

print(str(resp.StatusCode))
print(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": [
  ]
}