Requests to the
/api/admin/search_index/all/
endpoint trigger the full recreation of the search index. The most straightforward option is to re-index via the Swagger user interface, by calling the PUT /api/admin/search_index/all/
endpoint. Alternatively, the index recreation can be initiated at the command line interface (CLI) in a two-step process.
1) Request an authentication token retrieval:
curl --request POST \
--url https://<SIMA_HOST>/api/1.1/authentication/token \
--header 'Content-Type: application/json' \
--insecure \
--data-raw '{"userName": "admin", "password": "<PASSWORD>", "urls": ["/api/1.1/*"]}'
Where:
<SIMA_HOST>
is the Domain/IP of the SImA instance<PASSWORD>
is the password of the admin user account in SImA Expect a token to be returned.
{"token":"cabc3148-baed-4c1a-811e-845b8ff2492f","urls":["/api/1.1/*"]}
2) Pass the authentication token when calling the
/api/admin/search_index/all/
endpoint:curl --request PUT \
--url https://<SIMA_HOST>/api/admin/search_index/all/ \
--header 'PKI-Columbus-Authentication: <AUTHENTICATION_TOKEN>' \
--header 'Content-Type: application/json' \
--insecure \
--data-raw ''
Where:
<SIMA_HOST>
is the Domain/IP of the SImA instance<AUTHENTICATION_TOKEN>
is the token outputted during the token retrievalExpect a return code 200 (OK) on successful indexing.
{"status":"OK"}
Warning: It is strongly recommended that a backup of the Postgres database is created before re-indexing, so that the backup can be restored in case of problems.