Skip to main content

BatchSearchEngineIndexer

Home > @backstage/plugin-search-backend-node > BatchSearchEngineIndexer

Base class encapsulating batch-based stream processing. Useful as a base class for search engine indexers.

Signature:

abstract class BatchSearchEngineIndexer extends Writable 

Extends: Writable

Constructors

ConstructorModifiersDescription
(constructor)(options)Constructs a new instance of the BatchSearchEngineIndexer class

Methods

MethodModifiersDescription
finalize()abstractAny asynchronous teardown tasks can be performed here.
index(documents)abstractReceives an array of indexable documents (of size this.batchSize) which should be written to the search engine. This method won't be called again at least until it resolves.
initialize()abstractAny asynchronous setup tasks can be performed here.