Add sort index to hits

I would like to automatically add to every hit a field populated with the sort numeric index, is it possible?
This is the query i’m using:

  index.search(query, {
        relevancyStrictness: 0,
    })

I would like to have my hits like this:

[{
   objectID: "124367d60794b1_dashboard_generated_id",
   title: "Lorem ipsum",
   sortIndex: 10
}]

Where sortIndex is the index that the result has on Algolia