If the order of the columns will remain consistent, you can use the columns to get the value for the right formula field.
Copy code
var result = ... // your search result
result.columns; // an array of search columns
result.getValue(result.columns[4]); // get the value of the 5th search column