Index lines by trip ID.