Skip to main content

SearchService

SearchService

This service allows a concrete search service to override its behaviour by passing itself to the adopt() method.

Signature
class SearchService {
adopt(override: Pick<SearchService, 'reindex'>) => ;
reindex(ctx: RequestContext) => Promise<Job>;
}

adopt

method
(override: Pick<SearchService, 'reindex'>) =>

Adopt a concrete search service implementation to pass through the calls to.

reindex

method
(ctx: RequestContext) => Promise<Job>