convertToPortalParams

Function

Converts the common request format of contentSearch to a format specific to the Portal API

  • convertToPortalParams(request: IContentSearchRequest, defaultPortal: string, defaultAuthentication: UserSession) : ISearchOptions

Parameters

Parameter Type Default Notes
request Required IContentSearchRequest

the IContentSearchRequest instance for searching

defaultPortal Optional string
defaultAuthentication Optional UserSession

Returns

ISearchOptions

Function defined in packages/search/src/content/helpers/convert-request-to-portal-params.ts:34