Lines Matching full:token
11 * Abstract collection for direct 1:1 entity-token mappings
13 * In a direct collection each entity has exactly one token stored at the entity's position
14 * in the token index (entity.RID === token.RID). No frequency or reverse indexes are used.
34 "Entity count ($ec) != token count ($tc)"
41 * Store a single token for the given entity
43 * Takes the first token from the list and writes it directly at the entity's position
44 * in the token index. An empty list stores an empty string.
62 $token = $tokens[0] ?? ''; variable in dokuwiki\\Search\\Collection\\DirectCollection
64 $tokenIndex->changeRow($entityId, $token);
71 * Get the token stored for the given entity
74 * @return string The stored token, or empty string if none
91 // In a DirectCollection, token RID = entity RID, frequency is always 1
106 foreach ($tokenIndex as $entityId => $token) {
107 if ($token === '') continue;
117 * Not actually used, because we override addEntity() to directly write the token.
122 $token = $tokens[0] ?? '';
123 return [$token => 1];