4.2. The new index structure

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

The index for the full text search was located in the lucene subdirectory in V11. In addition, there were the directories dym and sws for the relatedwords index and the spellchecker index. In V12, these indexes are located together in the indextext subdirectory. The name of the directory also contains a 10-digit identifier that is reassigned with each index update (e.g. indextext_6omke6ohlb).

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

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

New in the V12 is the index for search variables. This index contains the info which common variables exist in the catalog. In V11 this information was stored in the search.cfg files in the catalog. The name is searchvars followed by the 10digit identifier (e.g. searchvars_790j4ntjsm).

New in the V12 is an index for topo search and partial search. The name of the index is geoDb_u47dj5odfor example.

New in the V12 is also the file index.cfg. This file contains the versions of the indexes and in which subdirectory they are stored.

An index update will happen only then if the index format has been changed and the index version has been increased.

Example of the content of an index.cfg

[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