From 36e813aa2d4c907024636cd3b37af0ecfd2f5f7e Mon Sep 17 00:00:00 2001 From: Seednode Date: Tue, 30 Jan 2024 04:38:29 -0600 Subject: [PATCH] Add info for automatic indexing to Readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4a1d448..c120e63 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,8 @@ This will slightly increase the delay before the application begins responding t The index can be regenerated at any time by accessing the `/index/rebuild` endpoint. +Automatic index rebuilds can be enabled via the `--index-interval` flag, which accepts [time.Duration](https://pkg.go.dev/time#ParseDuration) strings. + If `--index-file` is set, the index will be loaded from the specified file on start, and written to the file whenever it is re-generated. The index file consists of (optionally compressed) [gobs](https://pkg.go.dev/encoding/gob).