1
0

feat(tasks): add searching via typesense

This commit is contained in:
kolaente
2023-08-28 12:14:50 +02:00
parent dee46d527a
commit 010b4ce783
8 changed files with 308 additions and 201 deletions

View File

@ -40,6 +40,8 @@ var indexCmd = &cobra.Command{
return
}
log.Infof("Indexing… This may take a while.")
err := models.CreateTypesenseCollections()
if err != nil {
log.Critical(err.Error())
@ -48,6 +50,9 @@ var indexCmd = &cobra.Command{
err = models.ReindexAllTasks()
if err != nil {
log.Critical(err.Error())
return
}
log.Infof("Done!")
},
}