1.4.3.6.10. Repair geo,
topo or partial index
Use
case:
A repair makes
sense if for any reason the index is not correctly loaded when searching,
meaning there are missing search results or the program has completely
crashed or has been terminated before shutting down.
Procedure:
Repair index
via script.
Stop
PARTapplicationServer.
Copy repaired
index to correct location.
Restart
PARTapplicationServer.
Use the Manage fingerprints function to check the number of available fingerprints for plausibility.
Test whether topology search [Topology search], geometric search (3D) [Geometric search (3D)] or partial search [Partial search] work with the repaired index.
Example script:
option explicit
dim geoUtils = CreateObject("cnstools.geoindexutils")
dim types = CreateObject("cnstools.array")
types.add("geo")
types.add("partial")
types.add("topo")
geoUtils.repairIndexes("cat/stp", "C:\PSOL\consulting-1100SP9__2019-10-31__18.45__r185218
\data\index\cat\cat_stp", "C:\PSOL\data\stp_repaired_index", types)
Parameters of
geoUtils.repairIndexes:
Catalog path
in index tree
Path to
catalog index
Path where
the repaired index is written to
"types" is an
array with the index types, where "geo", "topo" and "partial" can be
added.