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;
    }
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;
    }
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 ; }
Returns the solr field type from the document field type string.

@param string $datatype
@return string
Returns the solr field type from the document field type string .