5.24.4.2. The new index structure

The indexes for a catalog are located in the directory $CADENAS_DATA/index/cat/cat_<CATALOGNAME>.

In V11, the index for the full-text search was located in the "lucene" subdirectory. There were also the "dym" directory for the related-words index and the "sws" directory for the spell-checking index. In V12, these indexes are located together in the “indextext” subdirectory. The directory name also contains a 10-digit identifier that is reassigned with every index update (e.g., indextext_6omke6ohlb).

The subdirectory for the search index in the link database was previously called "linkdb". In V12, the name is "indexdb" followed by a 10-digit identifier (e.g., "indexdb_mumxnyt9q1").

The index for automatic reverse lookup was previously stored in the "graph" directory. In V12, the name is "graph_2".

New in V12 is the index for search variables. This index contains information on: which common variables exist in the catalog. In V11, this information is stored in the search.cfg files of the catalog. The name of the directory starts with searchvars, followed by a 10-digit identifier (e.g. searchvars_790j4ntjsm).

Also new in V12 is an index for topology search and partial search. The name of this index is, for example, geoDb_u47dj5od.

Another new feature in V12 is the index.cfg file. This file contains the versions of the indexes as well as information about which subdirectories they are stored in.

An index is updated only if the index format has changed and the index version has been incremented.

Example of the contents of an index.cfg file:

[LUCENE]
path=indextext_6omke6ohlb
version=1.3
size=43758
modtime=21.06.2022 08:27:30
catalogtime=02.09.2014 08:49:33
sourcetime=12.05.2022 14:04:44

[LINKDB]
path=indexdb_mumxnyt9q1
version=1.3
size=61323
modtime=12.05.2022 14:01:48
catalogtime=02.09.2014 08:49:33
sourcetime=29.04.2022 15:27:42

[SEARCHVARS]
path=searchvars_790j4ntjsm
version=1.0
size=120456
modtime=21.06.2022 08:27:25
catalogtime=02.09.2014 08:49:33
sourcetime=12.05.2022 14:04:44

[GEODB]
path=geoDb_u47dj5odvs
version=1.0
modtime=02.05.2022 11:57:38

[GRAPHLOOKUP.2]
path=graph_2
version=2.0
modtime=21.06.2022 08:27:30
catalogtime=02.09.2014 08:49:33