Lines Matching refs:indexer

7     private $indexer;  variable in indexer_rename_test
13 $this->indexer = idx_get_indexer();
14 $this->indexer->clear();
23 $oldpid = $this->indexer->getPID($this->old_id);
25 …$this->assertTrue($this->indexer->renamePage($this->old_id, $newid), 'Renaming the page to a new i…
28 …$this->assertNotEquals($this->indexer->getPID($this->old_id), $oldpid, 'PID for the old page uncha…
29 … $this->assertEquals($this->indexer->getPID($newid), $oldpid, 'New page has not the old pid.');
31 …$this->assertEquals(array('old' => array($newid => 1)), $this->indexer->lookup($query), '"Old" doe…
39 $oldpid = $this->indexer->getPID($this->old_id);
40 $existingpid = $this->indexer->getPID($newid);
42 …$this->assertTrue($this->indexer->renamePage($this->old_id, $newid), 'Renaming the page to an exis…
44 …$this->assertNotEquals($this->indexer->getPID($this->old_id), $oldpid, 'PID for old page unchanged…
45 …$this->assertNotEquals($this->indexer->getPID($this->old_id), $existingpid, 'PID for old page is n…
46 … $this->assertEquals($this->indexer->getPID($newid), $oldpid, 'New page has not the old pid.');
48 …$this->assertEquals(array('existing' => array()), $this->indexer->lookup($query), 'Existing page h…
50 …$this->assertEquals(array('old' => array($newid => 1)), $this->indexer->lookup($query), '"Old" doe…
54 $this->indexer->addMetaKeys($this->old_id, array('mkey' => 'old_value'));
56 …$this->assertTrue($this->indexer->renameMetaValue('mkey', 'old_value', 'new_value'), 'Meta value r…
58 …$this->assertEquals(array(), $this->indexer->lookupKey('mkey', $query), 'Page can still be found u…
60 …$this->assertEquals(array($this->old_id), $this->indexer->lookupKey('mkey', $query), 'Page can\'t …
64 … $this->indexer->addMetaKeys($this->old_id, array('mkey' => array('old_value', 'new_value')));
68 $this->indexer->addMetaKeys('newvalue', array('mkey' => array('new_value')));
72 $this->indexer->addMetaKeys('oldvalue', array('mkey' => array('old_value')));
74 …$this->assertTrue($this->indexer->renameMetaValue('mkey', 'old_value', 'new_value'), 'Meta value r…
76 …$this->assertEquals(array(), $this->indexer->lookupKey('mkey', $query), 'Page can still be found u…
78 $result = $this->indexer->lookupKey('mkey', $query);