From 05c132cbed911a125ceb73d176dd3d52f701f011 Mon Sep 17 00:00:00 2001 From: Emma Indal Date: Thu, 9 Mar 2023 14:27:46 +0100 Subject: [PATCH] rename type from IndexServiceBuildOptions to SearchIndexServiceStartOptions Signed-off-by: Emma Indal Co-authored-by: Camila Loiola --- plugins/search-backend-node/src/alpha.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,