In this article, we'll show you which indexes a certain Haiilo version has and how you can renew them.
Haiilo provides some managing endpoints to help you perform some operations and maintenance tasks.
All endpoints are protected with the basic auth credentials of the corresponding platform. The credentials can be found under COYO_MANAGEMENT_USER
andCOYO_MANAGEMENT_PASSWORD
in your .env file.
Use the following syntax to access these endpoints:
curl -u \"$COYO_MANAGEMENT_USER>:$COYO_MANAGEMENT_PASSWORD\" -X \"POST\" $COYO_BACKEND_URL/ENDPOINT
Use the following syntax to access these endpoints if a request body is required:
curl -u \"$COYO_MANAGEMENT_USER>:$COYO_MANAGEMENT_PASSWORD\" -X POST $COYO_BACKEND_URL/ENDPOINT \\\n -H 'content-type: application/json' \\\n -d '{\"BODY_KEY1\": \"BODY_VALUE1\"}'\n
For example if you want to refresh the index \"search:file\":
curl -u \"admin:admin\" -X POST http://local.coyo4.com/manage/backend/index/refresh \\\n -H 'content-type: application/json' \\\n -d '{\"indexNames\" : [ \"search:file\" ], \"update\" : true, \"delete\" : true}'