public function setFormatVersion($formatVersion)
    {
        if ($formatVersion != self::FORMAT_PRE_2_1  
            && $formatVersion != self::FORMAT_2_1  
            && $formatVersion != self::FORMAT_2_3
        ) {
            include_once 'Zend/Search/Lucene/Exception.php';
            throw new Zend_Search_Lucene_Exception('Unsupported index format');
        }

        $this->_formatVersion = $formatVersion;
    }
public function setFormatVersion($formatVersion)
    {
        if ($formatVersion != self::FORMAT_PRE_2_1  
            && $formatVersion != self::FORMAT_2_1  
            && $formatVersion != self::FORMAT_2_3
        ) {
            include_once 'Zend/Search/Lucene/Exception.php';
            throw new Zend_Search_Lucene_Exception('Unsupported index format');
        }

        $this->_formatVersion = $formatVersion;
    }
public function setFormatVersion ( $ formatVersion ) { if ( $ formatVersion != self :: FORMAT_PRE_2_1 && $ formatVersion != self :: FORMAT_2_1 && $ formatVersion != self :: FORMAT_2_3 ) { include_once 'Zend/Search/Lucene/Exception.php' ; throw new Zend_Search_Lucene_Exception ( 'Unsupported index format' ) ; } $ this -> _formatVersion = $ formatVersion ; }
Set index format version.
Index is converted to this format at the nearest upfdate time

@param  int $formatVersion
@throws Zend_Search_Lucene_Exception
Set index format version . Index is converted to this format at the nearest upfdate time