protected function basicElasticParams($withId = false)
    {
        $params = array(
            'index' => $this->getIndex(),
            'type' => $this->getTypeName()
        );

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

        return $params;
    }
protected function basicElasticParams($withId = false)
    {
        $params = array(
            'index' => $this->getIndex(),
            'type' => $this->getTypeName()
        );

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

        return $params;
    }
protected function basicElasticParams ( $ withId = false ) { $ params = array ( 'index' => $ this -> getIndex ( ) , 'type' => $ this -> getTypeName ( ) ) ; if ( $ withId and $ this -> getKey ( ) ) { $ params [ 'id' ] = $ this -> getKey ( ) ; } return $ params ; }
Sets the basic Elasticsearch parameters.

@param bool $withId
@return array
Sets the basic Elasticsearch parameters .