we have a Lucene (4.1) based matching process in production and want to compare the performance vs a Elasticsearch based solution. The matching process is rather complicated concerning the whole business logic with rule based search strategies and quality assurance steps between. So it would be hard to rewrite the complete code basis for just testing performance. Our idea is run a test suite of the Lucene based matching engine with a large set of test data and trace the "Lucene queries" in a textual form into a log file which should be the input afterwords for supplying a Elasticsearch based Java program for the comparison. Any ideas how this can be implemented?