dbs-reindex Command

Restore the entire Elasticsearch index from the database via Commander service.

Changes in the object structure might lead to differences between the index of Elasticsearch and the database. As of yuuvis® Momentum version 2020 Winter, it is possible to reindex Elasticsearch according to the database by means of the dbs-reindex command provided by the /wiki/spaces/YMY/pages/320050357.

The reindexing can be limited by a start date and an end date, and by specifying a tenant. Before the reindexing, execute the dbs-configure Command to turn the simulation mode on/off.

These parameters can be given to the dbs reindex command:

ParameterDescriptionExample
-e | --end-date <arg>Sets an end date. The argument is in format yyyy-MM-dd.dbs-reindex --end-date=2020-01-21
-s | --start-date <arg>Sets a start date. The argument is in format yyyy-MM-dd.dbs-reindex -s 2019-01-21
-t | --tenant <arg>Specifies the target tenant. If not specified, the command is executed for all tenants.dbs-reindex -t default
(with the example tenant default)

The following example code shows the commands together with the corresponding command line outputs for a non-simulation reindexing. The simulation mode is turned off in line 16. In line 19, the reindexing is executed for the default tenant starting from 2020-01-01 and ending on 2022-01-01.

Lt. Commander>help dbs-configure


NAME
        dbs-configure - configure timeouts

SYNOPSYS
        dbs-configure [-s]
OPTIONS
        -s or --simulation
                turn simulation mode on/off
                [Optional, default = false]



Lt. Commander>dbs-configure
Running dbs-configure setting values simulation('false')
SessionState(simulation=false, reindexing=false)
Lt. Commander>dbs-reindex -t default -s 2020-01-01 -e 2022-01-01
Running dbs-reindex for 'default' from '2020-01-01' to '2022-01-01'

Read on

audit-cleanup Command

Remove entries from the audit trail by means of the COMMANDER service. Keep reading

Audit Trail - an "Object's History"

The audit trail is the history protocol of an object, serving to document its total lifecycle. There are many different actions that trigger the creation of a new entry in the respective object's audit trail. Keep reading

COMMANDER Service for System Maintenance

Perform low-level maintenance on your core system, access the database and carry out Elasticsearch queries. Keep reading