// If secondary sorting field is present then set secondary sort. let secondarySortField = selectedConfig.fields.secondary_sort_field; if (secondarySortField != undefined) { if (secondarySortField.length > 0) { searchRequest.body.sort[0][secondarySortField] = {'order':request.payload.order} } }
Hi! in the server.js file a found :
// If secondary sorting field is present then set secondary sort. let secondarySortField = selectedConfig.fields.secondary_sort_field; if (secondarySortField != undefined) { if (secondarySortField.length > 0) { searchRequest.body.sort[0][secondarySortField] = {'order':request.payload.order} } }
But can't find how define it.
Thank's a lot