Home
last modified time | relevance | path

Searched refs:record (Results 1 – 5 of 5) sorted by relevance

/dokuwiki/inc/Search/Index/
H A DTupleOps.php16 * @param string $record This is the current row value to be modified
22 public static function updateTuple(string $record, int|string $key, int $count): string argument
24 if ($record != '') {
26 $record = preg_replace('/(^|:)' . preg_quote($key, '/') . '(\*\d+)?/', '', $record);
28 $record = trim($record, ':');
32 if ($record !== '') {
33 return "$tuple:" . $record;
38 return $record;
46 * @param string $record The row value to parse
50 public static function aggregateTupleCounts(string $record): int argument
[all …]
/dokuwiki/_test/tests/Search/Index/
H A DTupleOpsTest.php45 public function testUpdateTuple($record, $key, $count, $expect) argument
47 $result = TupleOps::updateTuple($record, $key, $count);
70 public function testAggregateTupleCounts($record, $expected) argument
72 $result = TupleOps::aggregateTupleCounts($record);
118 public function testParseTuples($record, $keys, $expect) argument
120 $result = TupleOps::parseTuples($record, $keys);
/dokuwiki/inc/Remote/OpenApiDoc/
H A DClassResolver.php104 $record = false;
113 if ($record) {
115 $record = false;
130 $record = 'class';
135 $record = 'as';
139 if ($record) {
144 $currentUse[$record] .= $token[1];
/dokuwiki/inc/Search/Collection/
H A DAbstractCollection.php417 $record = $reverseIndex->retrieveRow($entityId);
419 if ($record === '') {
423 return $this->parseReverseRecord($record);
442 $record = $this->formatReverseRecord($data);
448 $reverseIndex->changeRow($entityId, $record);
462 * @param string $record The raw reverse index record
465 protected function parseReverseRecord(string $record): array argument
468 foreach (explode(':', $record) as $entry) {
511 $record = $freqIndex->retrieveRow($tokenId);
512 $record = TupleOps::updateTuple($record, $entityId, $freq);
[all …]
/dokuwiki/inc/Search/
H A Dconcept.txt133 * ''parseTuples()'' - Parse a record into an array of key->count associations
134 * ''aggregateTupleCounts()'' - Sum all counts in a record
147 …entity. Used for updating: when an entity is re-indexed, the old reverse record provides the list …