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
hasNext Inherited boolean
next Inherited function(params: any) : Promise<ISearchResponse<any>>
results Inherited any[]
total Inherited number
aggregations Optional IContentAggregations

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