Versions in this module Expand all Collapse all v1 v1.11.0 Apr 26, 2026 Changes in this version + const Window + var ErrNoBody = errors.New("body is empty or only contains white space") + var ErrNoIndex = errors.New("the blaze index is empty and must be created before using this func") + var ErrNoName = errors.New("filename is empty") + func Snippet(query, body string, wordWindow int) string + type Index struct + Body string + Name string + type Result struct + ID int + Name string + Score float64 + Snip string + type Tidbits struct + TotalDocs int + TotalTerms int64 + func (ts *Tidbits) Add(filename, body string) error + func (ts *Tidbits) Body(docID int) string + func (ts *Tidbits) Name(docID int) string + func (ts *Tidbits) New() + func (ts *Tidbits) NewIndex(fsys embed.FS, root string) error + func (ts *Tidbits) Search(query string, maxResults int) []Result + func (ts *Tidbits) Stores() int