SearchStrategy
This interface defines the contract that any database-specific search implementations should follow.
Info
This is configured via the searchStrategy property of
the DefaultSearchPluginInitOptions.
- Extends:
InjectableStrategy
getSearchResults
method
(ctx: RequestContext, input: SearchInput, enabledOnly: boolean) => Promise<SearchResult[]>getTotalCount
method
(ctx: RequestContext, input: SearchInput, enabledOnly: boolean) => Promise<number>getFacetValueIds
method
(ctx: RequestContext, input: SearchInput, enabledOnly: boolean) => Promise<Map<ID, number>>getCollectionIds
method
(ctx: RequestContext, input: SearchInput, enabledOnly: boolean) => Promise<Map<ID, number>>Was this chapter helpful?