Versions in this module Expand all Collapse all v1 v1.0.2 Aug 25, 2024 v1.0.1 Aug 25, 2024 Changes in this version + var ErrClosed = fmt.Errorf("index closed") + type Automaton interface + Accept func(int, byte) int + CanMatch func(int) bool + IsMatch func(int) bool + Start func() int + WillAlwaysMatch func(int) bool + type CollectionStats interface + DocumentCount func() uint64 + Merge func(CollectionStats) + SumTotalTermFrequency func() uint64 + TotalDocumentCount func() uint64 + type Data struct + func NewDataBytes(b []byte) *Data + func NewDataFile(f *os.File) (*Data, error) + func (d *Data) Len() int + func (d *Data) Read(start, end int) ([]byte, error) + func (d *Data) Reader() *DataReader + func (d *Data) Size() int + func (d *Data) Slice(start, end int) *Data + func (d *Data) WriteTo(w io.Writer) (int64, error) + type DataReader struct + func (r *DataReader) Read(p []byte) (n int, err error) + type Dictionary interface + Iterator func(a Automaton, startKeyInclusive, endKeyExclusive []byte) DictionaryIterator + PostingsList func(term []byte, except *roaring.Bitmap, prealloc PostingsList) (PostingsList, error) + type DictionaryEntry interface + Count func() uint64 + Term func() string + type DictionaryIterator interface + Close func() error + Next func() (DictionaryEntry, error) + type DictionaryLookup interface + Close func() error + Contains func(key []byte) (bool, error) + type DocVisitState interface + type Document interface + Analyze func() + EachField func(vf VisitField) + Timestamp func() int64 + type DocumentValueReader interface + VisitDocumentValues func(number uint64, visitor DocumentValueVisitor) error + type DocumentValueVisitor func(field string, term []byte) + type Field interface + EachTerm func(vt VisitTerm) + Index func() bool + IndexDocValues func() bool + Length func() int + Name func() string + Store func() bool + Value func() []byte + type FieldTerm interface + EachLocation func(vl VisitLocation) + Frequency func() int + Term func() []byte + type Location interface + End func() int + Field func() string + Pos func() int + Size func() int + Start func() int + type Merger interface + DocumentNumbers func() [][]uint64 + WriteTo func(w io.Writer, closeCh chan struct{}) (n int64, err error) + type Optimizable interface + Optimize func(kind string, octx OptimizableContext) (OptimizableContext, error) + type OptimizableContext interface + Finish func() (PostingsIterator, error) + type OptimizablePostingsIterator interface + ActualBitmap func() *roaring.Bitmap + DocNum1Hit func() (uint64, bool) + ReplaceActual func(*roaring.Bitmap) + type Posting interface + Frequency func() int + Locations func() []Location + Norm func() float64 + Number func() uint64 + SetNumber func(uint64) + Size func() int + type PostingsIterator interface + Advance func(docNum uint64) (Posting, error) + Close func() error + Count func() uint64 + Empty func() bool + Next func() (Posting, error) + Size func() int + type PostingsList interface + Count func() uint64 + Iterator func(includeFreq, includeNorm, includeLocations bool, prealloc PostingsIterator) (PostingsIterator, error) + Size func() int + type Segment interface + CollectionStats func(field string) (CollectionStats, error) + Count func() uint64 + Dictionary func(field string) (Dictionary, error) + DocsMatchingTerms func([]Term) (*roaring.Bitmap, error) + DocumentValueReader func(fields []string) (DocumentValueReader, error) + Fields func() []string + Size func() int + Timestamp func() (int64, int64) + Type func() string + Version func() uint32 + VisitStoredFields func(num uint64, visitor StoredFieldVisitor) error + WriteTo func(w io.Writer, closeCh chan struct{}) (int64, error) + type StoredFieldVisitor func(field string, value []byte) bool + type Term interface + Field func() string + Term func() []byte + type TermStats interface + DocumentFrequency func() uint64 + type VisitField func(Field) + type VisitLocation func(Location) + type VisitTerm func(FieldTerm)