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