better indexing and classifier

This commit is contained in:
ston1th 2019-05-03 00:05:51 +02:00
commit 98b53d3a33
9 changed files with 168 additions and 32 deletions

View file

@ -189,7 +189,7 @@ func indexHandler(ctx *Context) {
}
return
}
id, err := ctx.Srv.DB.Index.Add(txt, "pdf")
id, err := ctx.Srv.DB.Index.Add(txt)
if err != nil {
log.Printf("index: %s: %s", path, err)
return