Versions in this module Expand all Collapse all v0 v0.7.0 Feb 27, 2018 Changes in this version + var DefaultChunkFactor uint32 = 1024 + var DefaultMinSegmentsForInMemoryMerge = 2 v0.6.0 Jan 5, 2018 Changes in this version + const Name + const Version + var EventKindBatchIntroduction = EventKind(6) + var EventKindBatchIntroductionStart = EventKind(5) + var EventKindClose = EventKind(2) + var EventKindCloseStart = EventKind(1) + var EventKindMergerProgress = EventKind(3) + var EventKindPersisterProgress = EventKind(4) + var NumSnapshotsToKeep = 1 + var RegistryAsyncErrorCallbacks = map[string]func(error) + var RegistryEventCallbacks = map[string]func(Event) + var TermSeparator byte = 0xff + var TermSeparatorSplitSlice = []byte + func NewScorch(storeName string, config map[string]interface{}, ...) (index.Index, error) + type Event struct + Duration time.Duration + Kind EventKind + Scorch *Scorch + type EventKind int + type IndexSnapshot struct + func (i *IndexSnapshot) AddRef() + func (i *IndexSnapshot) DecRef() (err error) + func (i *IndexSnapshot) DocCount() (uint64, error) + func (i *IndexSnapshot) DocIDReaderAll() (index.DocIDReader, error) + func (i *IndexSnapshot) DocIDReaderOnly(ids []string) (index.DocIDReader, error) + func (i *IndexSnapshot) Document(id string) (rv *document.Document, err error) + func (i *IndexSnapshot) DocumentVisitFieldTerms(id index.IndexInternalID, fields []string, ...) error + func (i *IndexSnapshot) ExternalID(id index.IndexInternalID) (string, error) + func (i *IndexSnapshot) FieldDict(field string) (index.FieldDict, error) + func (i *IndexSnapshot) FieldDictPrefix(field string, termPrefix []byte) (index.FieldDict, error) + func (i *IndexSnapshot) FieldDictRange(field string, startTerm []byte, endTerm []byte) (index.FieldDict, error) + func (i *IndexSnapshot) Fields() ([]string, error) + func (i *IndexSnapshot) GetInternal(key []byte) ([]byte, error) + func (i *IndexSnapshot) Internal() map[string][]byte + func (i *IndexSnapshot) InternalID(id string) (rv index.IndexInternalID, err error) + func (i *IndexSnapshot) Segments() []*SegmentSnapshot + func (i *IndexSnapshot) TermFieldReader(term []byte, field string, includeFreq, includeNorm, includeTermVectors bool) (index.TermFieldReader, error) + type IndexSnapshotDocIDReader struct + func (i *IndexSnapshotDocIDReader) Advance(ID index.IndexInternalID) (index.IndexInternalID, error) + func (i *IndexSnapshotDocIDReader) Close() error + func (i *IndexSnapshotDocIDReader) Next() (index.IndexInternalID, error) + type IndexSnapshotFieldDict struct + func (i *IndexSnapshotFieldDict) Close() error + func (i *IndexSnapshotFieldDict) Len() int + func (i *IndexSnapshotFieldDict) Less(a, b int) bool + func (i *IndexSnapshotFieldDict) Next() (*index.DictEntry, error) + func (i *IndexSnapshotFieldDict) Pop() interface{} + func (i *IndexSnapshotFieldDict) Push(x interface{}) + func (i *IndexSnapshotFieldDict) Swap(a, b int) + type IndexSnapshotTermFieldReader struct + func (i *IndexSnapshotTermFieldReader) Advance(ID index.IndexInternalID, preAlloced *index.TermFieldDoc) (*index.TermFieldDoc, error) + func (i *IndexSnapshotTermFieldReader) Close() error + func (i *IndexSnapshotTermFieldReader) Count() uint64 + func (i *IndexSnapshotTermFieldReader) Next(preAlloced *index.TermFieldDoc) (*index.TermFieldDoc, error) + type Reader struct + func (r *Reader) Close() error + func (r *Reader) DocCount() (uint64, error) + func (r *Reader) DocIDReaderAll() (index.DocIDReader, error) + func (r *Reader) DocIDReaderOnly(ids []string) (index.DocIDReader, error) + func (r *Reader) Document(id string) (*document.Document, error) + func (r *Reader) DocumentVisitFieldTerms(id index.IndexInternalID, fields []string, ...) error + func (r *Reader) DumpAll() chan interface{} + func (r *Reader) DumpDoc(id string) chan interface{} + func (r *Reader) DumpFields() chan interface{} + func (r *Reader) ExternalID(id index.IndexInternalID) (string, error) + func (r *Reader) FieldDict(field string) (index.FieldDict, error) + func (r *Reader) FieldDictPrefix(field string, termPrefix []byte) (index.FieldDict, error) + func (r *Reader) FieldDictRange(field string, startTerm []byte, endTerm []byte) (index.FieldDict, error) + func (r *Reader) Fields() ([]string, error) + func (r *Reader) GetInternal(key []byte) ([]byte, error) + func (r *Reader) InternalID(id string) (index.IndexInternalID, error) + func (r *Reader) TermFieldReader(term []byte, field string, includeFreq, includeNorm, includeTermVectors bool) (index.TermFieldReader, error) + type RollbackPoint struct + func (r *RollbackPoint) GetInternal(key []byte) []byte + type Scorch struct + func (s *Scorch) AddEligibleForRemoval(epoch uint64) + func (s *Scorch) Advanced() (store.KVStore, error) + func (s *Scorch) Analyze(d *document.Document) *index.AnalysisResult + func (s *Scorch) Batch(batch *index.Batch) error + func (s *Scorch) Close() (err error) + func (s *Scorch) Delete(id string) error + func (s *Scorch) DeleteInternal(key []byte) error + func (s *Scorch) LoadSnapshot(epoch uint64) (rv *IndexSnapshot, err error) + func (s *Scorch) MemoryUsed() uint64 + func (s *Scorch) Open() error + func (s *Scorch) Reader() (index.IndexReader, error) + func (s *Scorch) Rollback(to *RollbackPoint) error + func (s *Scorch) RollbackPoints() ([]*RollbackPoint, error) + func (s *Scorch) RootBoltSnapshotEpochs() ([]uint64, error) + func (s *Scorch) SetInternal(key, val []byte) error + func (s *Scorch) Stats() json.Marshaler + func (s *Scorch) StatsMap() map[string]interface{} + func (s *Scorch) Update(doc *document.Document) error + type SegmentDictionarySnapshot struct + func (s *SegmentDictionarySnapshot) Iterator() segment.DictionaryIterator + func (s *SegmentDictionarySnapshot) PostingsList(term string, except *roaring.Bitmap) (segment.PostingsList, error) + func (s *SegmentDictionarySnapshot) PrefixIterator(prefix string) segment.DictionaryIterator + func (s *SegmentDictionarySnapshot) RangeIterator(start, end string) segment.DictionaryIterator + type SegmentSnapshot struct + func (s *SegmentSnapshot) Close() error + func (s *SegmentSnapshot) Count() uint64 + func (s *SegmentSnapshot) Deleted() *roaring.Bitmap + func (s *SegmentSnapshot) Dictionary(field string) (segment.TermDictionary, error) + func (s *SegmentSnapshot) DocNumbers(docIDs []string) (*roaring.Bitmap, error) + func (s *SegmentSnapshot) DocNumbersLive() *roaring.Bitmap + func (s *SegmentSnapshot) DocumentVisitFieldTerms(num uint64, fields []string, visitor index.DocumentFieldTermVisitor) error + func (s *SegmentSnapshot) Fields() []string + func (s *SegmentSnapshot) FullSize() int64 + func (s *SegmentSnapshot) Id() uint64 + func (s *SegmentSnapshot) Segment() segment.Segment + func (s *SegmentSnapshot) VisitDocument(num uint64, visitor segment.DocumentFieldValueVisitor) error + func (s SegmentSnapshot) LiveSize() int64 + type Stats struct + func (s *Stats) MarshalJSON() ([]byte, error) + type UnInvertIndex interface + VisitDocumentFieldTerms func(localDocNum uint64, fields []string, visitor index.DocumentFieldTermVisitor) error