code: protected function mapData(array $data)
      {
          $values = array();
          reset($data);
          while ($key = current($data)) {
              $values[$key] = next($data);
              next($data);
          }
  
          return $values;
      }
docs: Map Solr return array into a sane hash map.
  
  @param array $data
  
  @return array