function setUp() { $this->dir = dirname(__FILE__) . '/test_index'; $this->tearDown(); $index = new Search_Index_Lucene($this->dir); $typeFactory = $index->getTypeFactory(); $index->addDocument(array('object_type' => $typeFactory->identifier('wiki page'), 'object_id' => $typeFactory->identifier('HomePage'), 'contents' => $typeFactory->plaintext('module 7, 2.5.3')->filter(array(new Search_ContentFilter_VersionNumber())))); $this->index = $index; }
function setUp() { $this->dir = dirname(__FILE__) . '/test_index'; $this->tearDown(); $index = new Search_Index_Lucene($this->dir, 'en'); $typeFactory = $index->getTypeFactory(); $index->addDocument(array('object_type' => $typeFactory->identifier('wikipage?!'), 'object_id' => $typeFactory->identifier('Comité Wiki'), 'description' => $typeFactory->plaintext('a description for the pages éducation Case'), 'contents' => $typeFactory->plaintext('a description for the pages éducation Case'))); $this->index = $index; }