Files
opencloud/services/search/pkg/bleve/export_test.go
T
André Duffeck 51b7c8b0d3 Bound the memory of bleve indexing batches
Push a batch at 16 MiB of document data or before a document would overflow
it. Reindexing large text files ran out of memory otherwise.
2026-11-04 15:47:33 +01:00

10 lines
249 B
Go

// Copyright 2026 OpenCloud GmbH <mail@opencloud.eu>
// SPDX-License-Identifier: Apache-2.0
package bleve
// SetMaxBytes lowers the data limit of b, so tests don't need megabytes of content
func SetMaxBytes(b *Batch, n uint64) {
b.maxBytes = n
}