Fix bulk indexing
This commit is contained in:
parent
69e17e2777
commit
9c43989b59
|
@ -109,7 +109,11 @@ export abstract class AbstractIndexer <T extends IndexableDoc, DB> {
|
||||||
const elements = this.elementsToBulkIndex
|
const elements = this.elementsToBulkIndex
|
||||||
this.elementsToBulkIndex = []
|
this.elementsToBulkIndex = []
|
||||||
|
|
||||||
|
logger.info(`Bulk indexing ${elements.length} elements in ${this.indexName}`)
|
||||||
|
|
||||||
this.bulkProcessEnqueuedTask = await this.indexElements(elements)
|
this.bulkProcessEnqueuedTask = await this.indexElements(elements)
|
||||||
|
|
||||||
|
this.bulkIndexationTimer = undefined
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error({ err }, 'Cannot schedule bulk indexation')
|
logger.error({ err }, 'Cannot schedule bulk indexation')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue