KorAP / Krill

:mag: A Corpus Data Retrieval Index using Lucene for Look-Ups
BSD 2-Clause "Simplified" License
16 stars 3 forks source link

Reloading Krill index reader #56

Closed margaretha closed 5 years ago

margaretha commented 5 years ago

Kustvakt provides an API for closing Krill index reader at /index/close requiring an admin token. The token is contained in the adminToken file in the Kustvakt jar folder. If it doesn't exist, Kustvakt will auto-generate it at server start up.

Request example with curl: curl -v -H "Content-Type: application/x-www-form-urlencoded" "http://10.0.10.51:8000/api/v1.0/index/close" -d @adminToken