Versions in this module Expand all Collapse all v1 v1.2.1 Jun 21, 2026 Changes in this version + func BaseDocumentSize(d *storage.Document) (size uint64) + func BaseFieldDefinitionSize(f *storage.FieldDefinition) (size uint64) + func FloatField[T constraints.Float](dst *storage.FieldDefinition, tokPool *pool.Pool[storage.TokenDefinition], ...) (size uint64) + func IntegerField[T constraints.Signed](dst *storage.FieldDefinition, tokPool *pool.Pool[storage.TokenDefinition], ...) (size uint64) + func KeywordField(dst *storage.FieldDefinition, tokPool *pool.Pool[storage.TokenDefinition], ...) (size uint64) + func TextField(dst *storage.FieldDefinition, tokPool *pool.Pool[storage.TokenDefinition], ...) (size uint64) + func TimeField(dst *storage.FieldDefinition, tokPool *pool.Pool[storage.TokenDefinition], ...) (size uint64) + func TokenSize(t *storage.TokenDefinition) (size uint64) + type Batch struct + Documents []*storage.Document + DocumentsPool *pool.Pool[storage.Document] + Size uint64 + func NewBatch(docsPoolSize int) (batch *Batch) + func (b *Batch) Insert(id storage.DocumentId, totalFieldsSize uint64, ...) + func (b *Batch) Reset()