original_string: private function doc_field_to_solr_field($datatype) {
          $type = $datatype;
  
          $solrversion = $this->engine->get_solr_major_version();
  
          switch($datatype) {
              case 'text':
                  $type = 'text_general';
                  break;
              case 'int':
                  if ($solrversion >= 7) {
                      $type = 'pint';
                  }
                  break;
              case 'tdate':
                  if ($solrversion >= 7) {
                      $type = 'pdate';
                  }
                  break;
          }
  
          return $type;
      }
code: private function doc_field_to_solr_field($datatype) {
          $type = $datatype;
  
          $solrversion = $this->engine->get_solr_major_version();
  
          switch($datatype) {
              case 'text':
                  $type = 'text_general';
                  break;
              case 'int':
                  if ($solrversion >= 7) {
                      $type = 'pint';
                  }
                  break;
              case 'tdate':
                  if ($solrversion >= 7) {
                      $type = 'pdate';
                  }
                  break;
          }
  
          return $type;
      }
code_tokens: private function doc_field_to_solr_field ( $ datatype ) { $ type = $ datatype ; $ solrversion = $ this -> engine -> get_solr_major_version ( ) ; switch ( $ datatype ) { case 'text' : $ type = 'text_general' ; break ; case 'int' : if ( $ solrversion >= 7 ) { $ type = 'pint' ; } break ; case 'tdate' : if ( $ solrversion >= 7 ) { $ type = 'pdate' ; } break ; } return $ type ; }
docstring: Returns the solr field type from the document field type string.
  
  @param string $datatype
  @return string
docstring_tokens: Returns the solr field type from the document field type string .