Iterate two times  and parse separately queries from header and judgements from body. The one-pass version skips the first judgement.
Iterate two times  and parse separately queries from header and judgements from body. The one-pass version skips the first judgement.

o19s/elasticsearch-learning-to-rank,o19s/elasticsearch-learning-to-rank