Skip to main content

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

Parameter

Type

Description

options

RegisterDecoratorParameters

**Returns:**

void