WIP: refactor copytrans to use lucene indexes