searchContentEntities

Function

Generic search that returns Hub Entity types converted from items by the passed in ItemToEntityFunction

This abstraction is used to ensure that searching from any of the entity managers / modules is consistent, and returns the entity types, instead of IItem or IHubContent

Parameters

Parameter Type Default Notes
filter Required Filter<"content">
convertFn Required ItemToEntityFunction<>
options Required IHubSearchOptions

Returns

Promise<ISearchResponse<>>
Property Type Notes
hasNext boolean
next function(params: any) : Promise<ISearchResponse<>>
results []
total number
facets Optional IFacet[]

Function defined in common/src/search/_internal/searchContentEntities.ts:35