We don't want to add methods like this to the public API (and it isn't actually used anywhere - only mentioned in a commented-out like of code in examples/lucene-copydatabase.cc.