Lines Matching +full:continue +full:- +full:on +full:- +full:error

15  * Backward-compatible wrapper around {@see Indexer}
20 * renamePage, clear) to return `true` on success or a string error message
21 * on failure. This class wraps an {@see Indexer} instance and restores that
24 * used to live on Indexer itself.
34 * @deprecated 2026-04-07 use {@see Indexer} directly with try/catch
49 $this->indexer = $indexer ?? new Indexer();
56 * @deprecated 2026-04-07 call the same method on {@see Indexer} directly
61 return $this->indexer->$name(...$args);
66 * error message string on failure
68 * @deprecated 2026-04-07 use {@see Indexer::addPage()} with try/catch instead
74 return $this->indexer->addPage($page, $force);
76 return $e->getMessage();
82 * error message string on failure
84 * @deprecated 2026-04-07 use {@see Indexer::deletePage()} with try/catch instead
90 return $this->indexer->deletePage($page, $force);
92 return $e->getMessage();
98 * error message string on failure
100 * @deprecated 2026-04-07 use {@see Indexer::renamePage()} with try/catch instead
106 $result = $this->indexer->renamePage($oldpage, $newpage);
108 // index; restore the legacy error message that callers expect here
114 return $e->getMessage();
119 * @return true|string true on success, error message on failure
121 * @deprecated 2026-04-07 use {@see Indexer::clear()} with try/catch instead
127 $this->indexer->clear();
130 return $e->getMessage();
142 * @deprecated 2026-04-07 use MetadataSearch::lookupKey() instead
147 return (new MetadataSearch())->lookupKey($key, $value);
158 * @deprecated 2026-04-07 use Collection classes directly instead
170 $collection->lock()->addEntity($page, $values)->unlock();
171 $this->indexer->updateMetadataRegistry([$key]);
186 * @deprecated 2026-04-07 use Collection classes directly instead
193 $collection->lock();
195 $tokenIndex = $collection->getTokenIndex();
197 // find old value — search() is read-only, won't create entries
198 $matches = $tokenIndex->search('/^' . preg_quote($oldvalue, '/') . '$/');
200 $collection->unlock();
205 // check if new value already exists (read-only lookup)
206 $newMatches = $tokenIndex->search('/^' . preg_quote($newvalue, '/') . '$/');
211 $freqIndex = $collection->getFrequencyIndex();
212 $reverseIndex = $collection->getReverseIndex();
213 $oldFreqLine = $freqIndex->retrieveRow($oldid);
216 $newFreqLine = $freqIndex->retrieveRow($newid);
221 $reverseRow = $reverseIndex->retrieveRow((int)$entityId);
227 $reverseIndex->changeRow(
232 $freqIndex->changeRow($oldid, '');
233 $freqIndex->changeRow($newid, $newFreqLine);
237 $tokenIndex->changeRow($oldid, $newvalue);
240 $collection->unlock();
253 * @deprecated 2026-04-07 use FileIndex directly instead
259 return (new FileIndex('page', '', true))->accessCachedValue($page);
271 * @deprecated 2026-04-07 use CollectionSearch on PageFulltextCollection instead
280 if (!Tokenizer::isValidSearchTerm($token)) continue;
281 $term = $search->addTerm($token);
286 $search->execute();
290 $freqs = $term->getEntityFrequencies();