ES|QL FIRST function Returns the earliest occurrence of a field based on a sort field. - field - The search field - sort Field - The sort field This function calculates the earliest occurrence of the search field (the first parameter), where sorting order is determined by the sort field (the second parameter).