Page Properties |
---|
|
Product Version | 2020 Winter |
---|
Report Note |
|
---|
Assignee | Antje |
---|
Resources & Remarks Modification History Name | Date | Product Version | Action |
---|
Antje | 08 FEB 2021 | 2020 Winter | New page properties macro. | JaR | 29 SEP 2021 | yMwA5 | new command style | Antje | 21 FEB 2021 | 2022 Winter | again new command style |
|
...
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. Per default, the command is Via the dbs-configure
command, the reindxing can be configured to be executed in a simulation mode that does not manipulate any data. In order to actually apply the reindexing to the data, the simulation mode has to be turned off with the dbs
-configure
command. After the non-simulation reindexing has been executed, the simulation mode is turned on again automatically.
These parameters can be given to the dbs
-configure
command:
Parameter | Description | Example |
---|
-s | --simulation | Turns the simulation mode on (true - parameter is set) or off (false - parameter is not |
set).After starting the Commander service and after a non-simulation reindexing process, the simulation mode is to true
automatically.dbs-configure --simulation | -c | --cockroach | Turns cockroach-db on/off. If cockroach-db is turned on (true
- parameter is set, command rename
will do updates on database without SELECT
FOR
UPDATE
The parameter is optional, default is false
.
dbs-configure -s -c | -f | --fulltext | Turns full-text index on/off.
The parameter is optional, default is ff (false
)dbs-configure -s -f
Lt. Commander>dbs-configure -s -c -f
Running setting values simulation('true'), cockroach('true'), fulltext('true')
Lt. Commander>dbsconfigure s -f
Running dbs-configure setting values simulation('true'), cockroach('false'), fulltext('true')
mode is [true]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 2516. In line 2819, the reindexing is is executed for the default
tenant starting from 2020-01-01
and ending on 2022-01-01
.
Code Block |
---|
language | powershell |
---|
linenumbers | true |
---|
|
Lt. Commander>help dbs-configure
NAME
dbs-configure - configure timeouts
SYNOPSYS
dbs-configure [-s] [-c]
[-f]
OPTIONS
-s or --simulation
turn simulation mode on/off
[Optional, default = false]
-c or --cockroach
Sturn cockroach-db on/off. If cockroach-db is turned 'on', command 'rename' will do updates on database without 'SELECT FOR UPDATE'
[Optional, default = false]
-f or --fulltext
turn fulltext index on/off.
[Optional, default = false]
Lt. Commander>dbs-configure -f
Running dbs-configure setting values simulation('false'), cockroach('false'), fulltext('true')
SessionState(simulation=false, reindexing=false, cockroach=false, fulltext=true)
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' |
...
Info |
---|
|
Section |
---|
Column |
---|
| Insert excerpt |
---|
| Audit Trail - an "Object's History" |
---|
| Audit Trail - an "Object's History" |
---|
nopanel | true |
---|
| Keep reading
|
|
|