getFileObject('_1.sti'); $stiFileData = $stiFile->readBytes($directory->fileLength('_1.sti')); // Load dictionary index data list($termDictionary, $termDictionaryInfos) = unserialize($stiFileData); $segmentInfo = new Zend_Search_Lucene_Index_SegmentInfo($directory, '_1', 2); $tiiFile = $segmentInfo->openCompoundFile('.tii'); $tiiFileData = $tiiFile->readBytes($segmentInfo->compoundFileLength('.tii')); // Load dictionary index data list($loadedTermDictionary, $loadedTermDictionaryInfos) = Zend_Search_Lucene_Index_DictionaryLoader::load($tiiFileData); $this->assertTrue($termDictionary == $loadedTermDictionary); $this->assertTrue($termDictionaryInfos == $loadedTermDictionaryInfos); } }