Versions in this module Expand all Collapse all v0 v0.0.1 Dec 9, 2024 Changes in this version + func File() string + func Merge(dst, src1, src2 string) + type Buffer struct + func (b *Buffer) Align(n int) + func (b *Buffer) Flush() + func (b *Buffer) Offset() int + func (b *Buffer) Write(x []byte) + func (b *Buffer) WriteByte(x byte) error + func (b *Buffer) WriteString(s string) + func (b *Buffer) WriteTrigram(t uint32) + func (b *Buffer) WriteUint(x int) + func (b *Buffer) WriteVarint(x int) + type Index struct + Verbose bool + func Open(file string) *Index + func (ix *Index) Check() error + func (ix *Index) Name(fileid int) Path + func (ix *Index) Names(lo, hi int) iter.Seq[Path] + func (ix *Index) NamesAt(min, max int) *PathReader + func (ix *Index) PostingAnd(list []int, trigram uint32) []int + func (ix *Index) PostingList(trigram uint32) []int + func (ix *Index) PostingOr(list []int, trigram uint32) []int + func (ix *Index) PostingQuery(q *Query) []int + func (ix *Index) PrintStats() + func (ix *Index) Roots() *PathReader + type IndexWriter struct + LogSkip bool + Verbose bool + Zip bool + func Create(file string) *IndexWriter + func (ix *IndexWriter) Add(name string, f io.Reader) error + func (ix *IndexWriter) AddFile(name string) error + func (ix *IndexWriter) AddRoots(roots []Path) + func (ix *IndexWriter) Flush() + type Path struct + func MakePath(s string) Path + func (p Path) Compare(q Path) int + func (p Path) HasPathPrefix(parent Path) bool + func (p Path) String() string + type PathReader struct + func NewPathReader(version int, data []byte, limit int) *PathReader + func (r *PathReader) All() iter.Seq[Path] + func (r *PathReader) Next() bool + func (r *PathReader) NumPaths() int + func (r *PathReader) Path() Path + func (r *PathReader) Valid() bool + type PathWriter struct + func NewPathWriter(data, index *Buffer, version, group int) *PathWriter + func (w *PathWriter) Collect(paths iter.Seq[Path]) + func (w *PathWriter) Count() int + func (w *PathWriter) Write(p Path) + type Query struct + Op QueryOp + Sub []*Query + Trigram []string + func RegexpQuery(re *syntax.Regexp) *Query + func (q *Query) String() string + type QueryOp int + const QAll + const QAnd + const QNone + const QOr