about summary refs log tree commit diff stats
path: root/cmd/searchix-web/main.go
diff options
context:
space:
mode:
authorAlan Pearce2024-06-09 15:26:17 +0200
committerAlan Pearce2024-06-09 15:26:17 +0200
commit789d0079f84017ddafad763ffba9aadbcd6aa6da (patch)
treec18ed4c24d35ef038a9d2deeb77d5a8f584fa55e /cmd/searchix-web/main.go
parenta495a673d2dda7b2aa9b11217d4662367a627517 (diff)
downloadsearchix-789d0079f84017ddafad763ffba9aadbcd6aa6da.tar.lz
searchix-789d0079f84017ddafad763ffba9aadbcd6aa6da.tar.zst
searchix-789d0079f84017ddafad763ffba9aadbcd6aa6da.zip
refactor: use a struct to configure index options
Diffstat (limited to 'cmd/searchix-web/main.go')
-rw-r--r--cmd/searchix-web/main.go5
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)
 	}