Well... My doubt is: what thing exactly refers to the «index» parameter in «pages» objects? At first instance, I believed it was the index of the same page in the «search» array of objects. That seems logic.
But, when using that, sometimes certain indexes simply don't match (they pair «pageid» from one page with «titlesnippet», «snippet», etc from another page).