| /dokuwiki/_test/tests/Search/Collection/ |
| H A D | DirectCollectionTest.php | 19 $index->addEntity('wiki:start', ['Welcome to DokuWiki']); 37 $index->addEntity('wiki:start', ['Old Title']); 41 $index->addEntity('wiki:start', ['New Title']); 55 $index->addEntity('wiki:start', []); 69 $index->addEntity('wiki:start', ['My Page Title']); 83 $index->addEntity('wiki:start', ['Title']); 93 $index->addEntity('wiki:start', ['Welcome']); 109 $index->addEntity('wiki:start', ['Title One']); 110 $index->addEntity('wiki:syntax', ['Title Two']); 127 $index->addEntity('wiki:start', ['Title One']); [all …]
|
| H A D | LookupCollectionTest.php | 19 $index->addEntity('wiki:start', ['wiki:logo.png', 'wiki:banner.jpg', 'wiki:icon.svg']); 50 $index->addEntity('wiki:start', ['wiki:logo.png', 'wiki:logo.png', 'wiki:banner.jpg']); 70 $index->addEntity('wiki:start', ['wiki:logo.png', 'wiki:banner.jpg']); 75 $index->addEntity('wiki:start', ['wiki:banner.jpg', 'wiki:icon.svg']); 96 $index->addEntity('wiki:start', ['wiki:logo.png', 'wiki:banner.jpg']); 111 $index->addEntity('wiki:start', ['wiki:logo.png']); 123 $index->addEntity('wiki:start', ['wiki:logo.png']); 128 $index->addEntity('wiki:start', []); 147 $index->addEntity('wiki:start', ['wiki:logo.png', 'wiki:banner.jpg']); 165 $index->addEntity('wiki:start', ['wiki:syntax', 'wiki:welcome']); [all …]
|
| H A D | CollectionSearchTest.php | 17 $collection->addEntity('page1', ['dokuwiki', 'dokuwiki', 'dokuwikis', 'doku', 'wiki']); 18 $collection->addEntity('page2', ['dokuwiki', 'other', 'words']); 44 $collection->addEntity('page1', ['dokuwiki', 'dokuwiki', 'dokuwikis', 'doku', 'wiki']); 45 $collection->addEntity('page2', ['dokuwiki', 'other', 'words']); 86 $collection->addEntity('search:test', $tokens); 109 $collection->addEntity('page1', ['alpha', 'beta', 'gamma']); 130 $collection->addEntity('wiki:start', ['wiki:syntax', 'wiki:welcome']); 131 $collection->addEntity('wiki:other', ['wiki:syntax']); 150 $collection->addEntity('wiki:start', ['wiki:syntax', 'wiki:welcome']); 151 $collection->addEntity('wiki:other', ['wiki:syntax', 'other:page']); [all …]
|
| H A D | FrequencyCollectionTest.php | 20 $index->addEntity('test', $tokens); 40 $index->addEntity('test', $tokens); 56 $index->addEntity('wiki:syntax', ['dokuwiki']); 125 $index->addEntity('page1', ['alpha', 'beta']); 126 $index->addEntity('page2', ['beta', 'gamma']); 172 $index->addEntity('page1', ['dokuwiki', 'wiki']); 173 $index->addEntity('page2', ['other', 'words']); 208 $index->addEntity('page1', ['dokuwiki', 'wiki']); 223 $index->addEntity('page1', ['dokuwiki', 'wiki']); 243 $index->addEntity('page1', ['hi', 'dokuwiki', 'wiki']);
|
| /dokuwiki/inc/Search/ |
| H A D | Indexer.php | 174 ->addEntity($data['page'], [$data['metadata']['title']])->unlock(); 180 … (new PageFulltextCollection($pageIndex))->lock()->addEntity($data['page'], $words)->unlock(); 184 … (new PageFulltextCollection($pageIndex))->lock()->addEntity($data['page'], [])->unlock(); 193 … (new PageMetaCollection($key, $pageIndex))->lock()->addEntity($data['page'], $values)->unlock(); 226 (new PageTitleCollection($pageIndex))->lock()->addEntity($page, [])->unlock(); 227 (new PageFulltextCollection($pageIndex))->lock()->addEntity($page, [])->unlock(); 230 (new PageMetaCollection($key, $pageIndex))->lock()->addEntity($page, [])->unlock(); 406 $collection->lock()->addEntity($page, $values)->unlock();
|
| H A D | concept.txt | 171 ''addEntity($entity, $tokens)'' is the main method for writing data to a collection. It replaces al… 176 $collection->addEntity('wiki:page', $words); 180 Internally, ''addEntity()'' reads the reverse index to find the entity's old tokens, resolves the n… 182 For direct collections, ''addEntity()'' simply writes the first token at the entity's position in t…
|
| /dokuwiki/inc/Search/Collection/ |
| H A D | DirectCollection.php | 53 public function addEntity(string $entity, array $tokens): static function in dokuwiki\\Search\\Collection\\DirectCollection
|
| H A D | AbstractCollection.php | 332 public function addEntity(string $entity, array $tokens): static function in dokuwiki\\Search\\Collection\\AbstractCollection
|