diff --git a/internal/index/bleve_write.go b/internal/index/bleve_write.go index a5b3d18..030ff15 100644 --- a/internal/index/bleve_write.go +++ b/internal/index/bleve_write.go @@ -46,8 +46,8 @@ func (b *BleveIndexer) RemoveFile(file string) error { return nil } -// AddLibrary scans for documents and adds them to the index in batches of if they -// haven't been previously indexed +// AddLibrary scans for documents and adds them to the index in batches of if they +// haven't been previously indexed or if is true func (b *BleveIndexer) AddLibrary(batchSize int, forceIndexing bool) error { batch := b.idx.NewBatch() batchSlugs := make(map[string]struct{}, batchSize)