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'>) => ;
  async reindex(ctx: RequestContext) => Promise<Job>;
}

Members

adopt

method
type:
(override: Pick<SearchService, 'reindex'>) =>
Adopt a concrete search service implementation to pass through the calls to.

reindex

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