Back to Collection Items
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loHttp = createobject("CkHttp")
loQueryParams = createobject("CkJsonObject")
loQueryParams.UpdateString('["the"]',"")
loHttp.SetRequestHeader("Content-Type","application/json")
loHttp.SetRequestHeader("X-Meili-Api-Key","masterKey")
loResp = loHttp.QuickRequestParams("GET","http://localhost:7700/indexes/indexUID/settings/stop-words",loQueryParams)
if (loHttp.LastMethodSuccess = .F.) then
? loHttp.LastErrorText
release loHttp
release loQueryParams
return
endif
? str(loResp.StatusCode)
? loResp.BodyStr
release loResp
release loHttp
release loQueryParams
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": [
]
}