History log of /dokuwiki/inc/Search/Collection/PageTitleCollection.php (Results 1 – 3 of 3)
Revision Date Author Comments
# 0b52f0de 07-Apr-2026 Andreas Gohr <andi@splitbrain.org>

SearchIndex: use FileIndex for title token index

PageTitleCollection accesses titles by RID (one line at a time), so
loading the entire index into memory is wasteful. Override getTokenIndex()
to ret

SearchIndex: use FileIndex for title token index

PageTitleCollection accesses titles by RID (one line at a time), so
loading the entire index into memory is wasteful. Override getTokenIndex()
to return a FileIndex, matching the line-by-line access pattern used on
master.

show more ...


# 95b16223 05-Apr-2026 Andreas Gohr <andi@splitbrain.org>

SearchIndex: accept pre-instantiated entity and token indexes in collections

Allow passing AbstractIndex objects for the entity and token
parameters instead of string names. This enables sharing ind

SearchIndex: accept pre-instantiated entity and token indexes in collections

Allow passing AbstractIndex objects for the entity and token
parameters instead of string names. This enables sharing index
instances between collections for efficiency.

show more ...


# d92c078c 05-Apr-2026 Andreas Gohr <andi@splitbrain.org>

SearchIndex: add DirectCollection for 1:1 entity-token mappings

Introduce DirectCollection as a third collection type alongside
FrequencyCollection and LookupCollection. Direct collections store
exa

SearchIndex: add DirectCollection for 1:1 entity-token mappings

Introduce DirectCollection as a third collection type alongside
FrequencyCollection and LookupCollection. Direct collections store
exactly one token per entity at the entity's position in the token
index (entity.RID === token.RID), with no frequency or reverse indexes.

AbstractCollection now accepts optional frequency/reverse index names
(default to '') and skips locking empty index names.

Adds PageTitleCollection as the first concrete direct collection
for the page -> title mapping.

show more ...