diff --git a/plugins/search-backend-node/src/alpha.ts b/plugins/search-backend-node/src/alpha.ts index 22c6508b15..1565b6002d 100644 --- a/plugins/search-backend-node/src/alpha.ts +++ b/plugins/search-backend-node/src/alpha.ts @@ -39,7 +39,7 @@ import { IndexBuilder } from './IndexBuilder'; * @alpha * Options for build method on {@link SearchIndexService}. */ -export type IndexServiceBuildOptions = { +export type SearchIndexServiceStartOptions = { searchEngine: SearchEngine; collators: RegisterCollatorParameters[]; decorators: RegisterDecoratorParameters[]; @@ -53,7 +53,7 @@ export interface SearchIndexService { /** * Starts indexing process */ - start(options: IndexServiceBuildOptions): Promise; + start(options: SearchIndexServiceStartOptions): Promise; /** * Returns an index types list. */ @@ -97,7 +97,7 @@ class DefaultSearchIndexService implements SearchIndexService { return new DefaultSearchIndexService(options); } - async start(options: IndexServiceBuildOptions): Promise { + async start(options: SearchIndexServiceStartOptions): Promise { this.indexBuilder = new IndexBuilder({ logger: this.logger, searchEngine: options.searchEngine,