Converts the response format returned by the Hub Indexer V3 API to a common format


Parameter Type Default Notes
request Required ISearchParams

the ISearchParams instance used to invoke the request

response Optional any { data: [], meta: {} }

the JSON returned by the Hub Indexer V3 API

defaultAuthentication Optional UserSession

a default UserSession instance that can be used for the next() request if none provided


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-hub-response.ts:23