convertPortalResponse

Function

Converts the response format returned by the Portal API to a common format

Parameters

Parameter Type Default Notes
request Required ISearchOptions

the ISearchOptions instance used to invoke the request

response Required ISearchResult<IItem>

the ISearchResult JSON returned by the Portal API

Returns

Property Type Notes
count number
query string
aggregations Optional IContentAggregations

Function defined in search/src/content/helpers/convert-portal-response.ts:23