January 2020
Intermediate to advanced
640 pages
16h 56m
English
The bleveIterator type implements the indexer.Iterator interface and is defined as follows:
type bleveIterator struct { idx *InMemoryBleveIndexer searchReq *bleve.SearchRequest cumIdx uint64 rsIdx int rs *bleve.SearchResult latchedDoc *index.Document lastErr error }
The iterator implementation keeps track of two pointers:
To track the position in the paginated search result list, the iterator also maintains two counters: