Skip to main content
Version: Next

IndexBuilder.addDecorator()

Home > @backstage/plugin-search-backend-node > IndexBuilder > addDecorator

Makes the index builder aware of a decorator. If no types are provided on the decorator, it will be applied to documents from all known collators, otherwise it will only be applied to documents of the given types.

Signature:

addDecorator(options: RegisterDecoratorParameters): void;

Parameters

ParameterTypeDescription
optionsRegisterDecoratorParameters

Returns:

void