Backup and restore of the Lucene index
The commands index-backup, index-restore and index-backups of mercury-cmd order the server to create a backup of the Lucene index of cases, to restore the index from a backup and to list the backups. This article describes the commands and their options, the configuration of the client, and what the server does during a backup and a restore, on one node and in a cluster.
Calibrating the Lucene query optimizer
A query with a condition on a child case (for example address.county root first or child first. The optimizer of Mercury DB (HgDB) 3.0 chooses the way with a threshold, lucene.query.cost.childFirstRatio. The best value depends on the data and on the version of the engine, so it should be measured, not guessed. The command -lc of mercury-cmd measures it on the index of a node and prints the result. It never changes the configuration itself.
Command line tools
The package Mercury DB (HgDB) 3.0 contains two command line tools. Every tool has its own article with its function, commands, configuration and examples.
mercury-cmd: administrative commands and backup of the Lucene index
mercury-cmd runs the administrative commands of the server: generating and checking the Lucene index, reindexing, encoding passwords, testing database connections, calibrating the query optimizer and, through REST, the backup and restore of the Lucene index. This article describes how to run it, how to configure it, all its commands and how the backup works.
mercury-transfer: copying cases between instances
mercury-transfer copies the cases of one type (with the definition of the type) from a source instance to a target instance of Mercury DB (HgDB) 3.0. It connects to two running instances through web services and needs no access to their databases. This article describes how to run it, how it works and how to configure it.