public function getBasicEsParams($getIdIfPossible = true, $limit = null, $offset = null)
    {
        $params = array(
            'index' => $this->getIndexName(),
            'type' => $this->getTypeName(),
        );

        if ($getIdIfPossible && $this->getKey()) {
            $params['id'] = $this->getKey();
        }

        if (is_numeric($limit)) {
            $params['size'] = $limit;
        }

        if (is_numeric($offset)) {
            $params['from'] = $offset;
        }

        return $params;
    }
public function getBasicEsParams($getIdIfPossible = true, $limit = null, $offset = null)
    {
        $params = array(
            'index' => $this->getIndexName(),
            'type' => $this->getTypeName(),
        );

        if ($getIdIfPossible && $this->getKey()) {
            $params['id'] = $this->getKey();
        }

        if (is_numeric($limit)) {
            $params['size'] = $limit;
        }

        if (is_numeric($offset)) {
            $params['from'] = $offset;
        }

        return $params;
    }
public function getBasicEsParams ( $ getIdIfPossible = true , $ limit = null , $ offset = null ) { $ params = array ( 'index' => $ this -> getIndexName ( ) , 'type' => $ this -> getTypeName ( ) , ) ; if ( $ getIdIfPossible && $ this -> getKey ( ) ) { $ params [ 'id' ] = $ this -> getKey ( ) ; } if ( is_numeric ( $ limit ) ) { $ params [ 'size' ] = $ limit ; } if ( is_numeric ( $ offset ) ) { $ params [ 'from' ] = $ offset ; } return $ params ; }
Get Basic Elasticsearch Params

Most Elasticsearch API calls need the index and
type passed in a parameter array.

@param bool $getIdIfPossible
@param bool $getSourceIfPossible
@param bool $getTimestampIfPossible
@param int  $limit
@param int  $offset

@return array
Get Basic Elasticsearch Params