about summary refs log tree commit diff stats
path: root/cmd/searchix-web
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/searchix-web')
-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)
 	}