Files
sm-bm-plugin/jobs/extract_material_text.go
Jakub Zych 412821ec56 feat: index the text of attached PDFs
- jz_bm_material_file_texts caches the pdftotext output per file
- the River job jz.bm.extract_material_text extracts and resyncs
- the management multipart attach queues it inside its transaction
- file_texts in the document and a file snippet with its name
2026-11-08 20:11:19 +01:00

16 lines
577 B
Go

package jobs
// ExtractMaterialTextKind is the River kind of the file text extraction job.
const ExtractMaterialTextKind = "jz.bm.extract_material_text"
// ExtractMaterialTextArgs are the arguments of the job that extracts the
// text of a material's new PDFs and resyncs its search document. It is
// enqueued inside every attach transaction, so it exists only when the
// files committed.
type ExtractMaterialTextArgs struct {
MaterialID uint `json:"material_id"`
}
// Kind is the job kind.
func (ExtractMaterialTextArgs) Kind() string { return ExtractMaterialTextKind }