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.