diff --git a/resources/skins.vector.search/restSearchClient.js b/resources/skins.vector.search/restSearchClient.js index d62ab68db..f0c8bd83d 100644 --- a/resources/skins.vector.search/restSearchClient.js +++ b/resources/skins.vector.search/restSearchClient.js @@ -37,11 +37,11 @@ function adaptApiResponse( config, query, restResponse, showDescription ) { const urlGeneratorInstance = urlGenerator( config ); return { query, - results: restResponse.pages.map( ( page ) => { + results: restResponse.pages.map( ( page, index ) => { const thumbnail = page.thumbnail; return { id: page.id, - value: page.id, + value: page.id || -( index + 1 ), label: page.title, key: page.key, title: page.title,