WIP: integrating copytrans query to use lucene