diff options
author | Alan Pearce | 2024-06-09 15:26:17 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-09 15:26:17 +0200 |
commit | 789d0079f84017ddafad763ffba9aadbcd6aa6da (patch) | |
tree | c18ed4c24d35ef038a9d2deeb77d5a8f584fa55e /cmd/searchix-web | |
parent | a495a673d2dda7b2aa9b11217d4662367a627517 (diff) | |
download | searchix-789d0079f84017ddafad763ffba9aadbcd6aa6da.tar.lz searchix-789d0079f84017ddafad763ffba9aadbcd6aa6da.tar.zst searchix-789d0079f84017ddafad763ffba9aadbcd6aa6da.zip |
refactor: use a struct to configure index options
Diffstat (limited to 'cmd/searchix-web')
-rw-r--r-- | cmd/searchix-web/main.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/searchix-web/main.go b/cmd/searchix-web/main.go index c9ba2d6..5ece329 100644 --- a/cmd/searchix-web/main.go +++ b/cmd/searchix-web/main.go @@ -55,7 +55,10 @@ func main() { log.Fatalf("Failed to initialise searchix: %v", err) } - err = s.SetupIndex(*update, *replace) + err = s.SetupIndex(&searchix.IndexOptions{ + Update: *update, + Replace: *replace, + }) if err != nil { log.Fatalf("Failed to setup index: %v", err) } |