src/Result.php
/**
     * Returns the current array index or document object at the offset.
     * 
     * @see Result::useIndexKeys() 
     * @see Result::useDocumentKeys()
     * @return mixed
     */
Returns the current array index or document object at the offset.


Returns the current array index or document object at the offset .
public function key() {
        if ($this->indexKeys) {
            return $this->currentIndex;
        } else {
            return $this->result['hits']['hits'][$this->currentIndex]['_id'];
        }
    }
public function key ( ) { if ( $ this -> indexKeys ) { return $ this -> currentIndex ; } else { return $ this -> result [ 'hits' ] [ 'hits' ] [ $ this -> currentIndex ] [ '_id' ] ; } }
Returns the current array index or document object at the offset.
Returns the current array index or document object at the offset .