Versions in this module Expand all Collapse all v0 v0.1.0 Jul 19, 2026 Changes in this version + const OpAND + const OpANDNOT + const OpOR + type DB struct + func OpenDBMulti(paths []string) (*DB, error) + func (d *DB) Close() + func (d *DB) Compact(dest string) error + func (d *DB) DocIDs() ([]uint32, error) + func (d *DB) LastDocID() (uint32, error) + func (d *DB) Search(q *Query) ([]MSetEntry, error) + type Doc struct + func NewDoc() *Doc + func (d *Doc) AddBooleanTerm(term string) error + func (d *Doc) AddTerm(term string) error + func (d *Doc) Free() + type MSetEntry struct + DocID uint32 + Weight float64 + type Op int + type Query struct + func QueryCombine(op Op, a, b *Query) (*Query, error) + func QueryMatchAll() (*Query, error) + func QueryTerm(term string) (*Query, error) + func QueryWildcard(pattern string) (*Query, error) + func (q *Query) Free() + type WDB struct + func OpenWDB(path string) (*WDB, error) + func (w *WDB) Close() + func (w *WDB) Commit() error + func (w *WDB) DeleteDocument(docid uint32) (existed bool, err error) + func (w *WDB) DocCount() (uint32, error) + func (w *WDB) DocExists(docid uint32) (bool, error) + func (w *WDB) GetMetadata(key string) (string, error) + func (w *WDB) ReplaceDocument(docid uint32, d *Doc) error + func (w *WDB) SetMetadata(key, value string) error