mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 18:38:26 +00:00
Allow a collective to re-index their data
If something goes wrong, this might be necessary.
This commit is contained in:
@ -78,6 +78,7 @@ module Api exposing
|
||||
, setUnconfirmed
|
||||
, startOnceNotifyDueItems
|
||||
, startOnceScanMailbox
|
||||
, startReIndex
|
||||
, submitNotifyDueItems
|
||||
, updateNotifyDueItems
|
||||
, updateScanMailbox
|
||||
@ -149,6 +150,20 @@ import Util.Http as Http2
|
||||
|
||||
|
||||
|
||||
--- Full-Text
|
||||
|
||||
|
||||
startReIndex : Flags -> (Result Http.Error BasicResult -> msg) -> Cmd msg
|
||||
startReIndex flags receive =
|
||||
Http2.authPost
|
||||
{ url = flags.config.baseUrl ++ "/api/v1/sec/fts/reIndex"
|
||||
, account = getAccount flags
|
||||
, body = Http.emptyBody
|
||||
, expect = Http.expectJson receive Api.Model.BasicResult.decoder
|
||||
}
|
||||
|
||||
|
||||
|
||||
--- Scan Mailboxes
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user