1.3.8.9. 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:

  1. Repair index via script.

  2. Stop PARTapplicationServer.

  3. Copy repaired index to correct location.

  4. Restart PARTapplicationServer.

  5. Use function Manage fingerprints in order to check the number of existing fingerprints for plausibility.

  6. Test if Topology search, Geometric search (3D) or Partial search are working with the repaired index.

Exemplary 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:

  1. Catalog path in index tree

  2. Path to catalog index

  3. Path where the repaired index is written to

  4. "types" is an array with the index types, where "geo", "topo" and "partial" can be added.

[Note]Note

Repaired indexes are supposed to work in previous versions. But repairing a defective index of a version before 11 SP9 is likely not to work.