classes/ezfsolrdocumentfieldbase.php
static function preProcessValue( $value, $fieldType )
    {
        switch( $fieldType )
        {
            case 'date':
            {
                if ( is_numeric( $value ) )
                {
                    $value = self::convertTimestampToDate( $value );
                }
                // Flag this as not to index
                else
                {
                    $value = null;
                }

            } break;

            case 'boolean':
            {
                if ( is_numeric( $value ) )
                {
                    $value = $value ? 'true' : 'false';
                }
            } break;

            default:
            {
                // Do nothing yet.
            } break;
        }

        return $value;
    }
static function preProcessValue( $value, $fieldType )
    {
        switch( $fieldType )
        {
            case 'date':
            {
                if ( is_numeric( $value ) )
                {
                    $value = self::convertTimestampToDate( $value );
                }
                // Flag this as not to index
                else
                {
                    $value = null;
                }

            } break;

            case 'boolean':
            {
                if ( is_numeric( $value ) )
                {
                    $value = $value ? 'true' : 'false';
                }
            } break;

            default:
            {
                // Do nothing yet.
            } break;
        }

        return $value;
    }
static function preProcessValue ( $ value , $ fieldType ) { switch ( $ fieldType ) { case 'date' : { if ( is_numeric ( $ value ) ) { $ value = self :: convertTimestampToDate ( $ value ) ; } // Flag this as not to index else { $ value = null ; } } break ; case 'boolean' : { if ( is_numeric ( $ value ) ) { $ value = $ value ? 'true' : 'false' ; } } break ; default : { // Do nothing yet. } break ; } return $ value ; }
Preprocess value to make sure it complies to the
requirements Solr has to the different field types.

@param mixed Value
@param string Fielt type

@return moxed Processed value
Preprocess value to make sure it complies to the requirements Solr has to the different field types .